This cookbook installs only logstash and provides few typical configurations. It doesn't install or depends on java, apache, nginx, elasticsearch, kibana, etc...
It also skips lumberjack.
Default recipe only creates user/group and arks logstash. You are free to do anything with installation.
Also cookbook provides HWRPs for managing services and configs of logstash. You can define multiple services and configs.
Generic HWRP for managing logstashs' configs. It also creates parent directory for your config. You better want to use its child classes.
- create - default, creates new config
- delete - deletes config
- service - logstash service name config belongs to. Defaults to
logstash
- config - logstash config file name to create. Defaults to
/etc/<service>/<name>.conf
- source - config template to use. Defaults to
logstash/<name>.conf.erb
- owner - set owner of config file. Defaults to
logstash
- group - set group of config file. Defaults to
logstash
- mode - set group of config file. Defaults to
0640
- variables - set variables for config template. Defaults to
{}
This resource based on logstash_config. It has the same actions and attributes. But it has some different default values:
- config - Defaults to
/etc/<service>/10_input_<name>.conf
- source - Defaults to
logstash/input/<name>.conf.erb
This resource based on logstash_config. It has the same actions and attributes. But it has some different default values:
- config - Defaults to
/etc/<service>/20_filter_<name>.conf
- source - Defaults to
logstash/filter/<name>.conf.erb
This resource based on logstash_config. It has the same actions and attributes. But it has some different default values:
- config - Defaults to
/etc/<service>/90_output_<name>.conf
- source - Defaults to
logstash/output/<name>.conf.erb
Defines logstash service based. Currently only systemd implemented.
Actions are same as in runit HWRP. Use this resource as you use runit
You can visit fixture cookbook simple-logstash-test
- debian (>= 8.0)
- ubuntu (>= 16.0)
- centos (>= 7.0)
- ark
node['logstash']['download_url']
- Defaults tohttps://download.elastic.co/logstash/logstash/logstash-1.5.6.tar.gz
.node['logstash']['checksum']
- Defaults to812a809597c7ce00c869e5bb4f87870101fe6a43a2c2a6586f5cc4d1a4986092
.node['logstash']['version']
- Defaults to1.5.6
.node['logstash']['user']
- Defaults tologstash
.node['logstash']['group']
- Defaults tologstash
.node['logstash']['prefix_root']
- Defaults to/opt
.
- simple-logstash::default - Installs/Configures simple-logstash. No less. No more.
Maintainer:: Yauhen Artsiukhou (jsirex@gmail.com)
Source:: https://github.com/jsirex/simple-logstash-cookbook
Issues:: https://github.com/jsirex/simple-logstash-cookbook/issues
License:: Apache-2.0