Configuring Logstash when installed as a service [closed]

you got configuration of logstash in directory /etc/logstash/conf.d/

You got all paths in /etc/init.d/logstash

# logstash configuration directory CONF_DIR=/etc/logstash/conf.d

I got there file /etc/logstash/conf.d/logstash.conf which is automaticlly generated by puppet logstash module :)


You need to tell it to start:

sudo service logstash start

And it will use the default config file which is at location /etc/logstash/conf.d.
Like any other service ever.

If you want to use another configuration file you'll need to check in the init script if it's possible to do that.
Very likely it's not and you'd need to copy the init script and change it to use another config file.