How to set a default start up option?

I am new to Elasticstack, and am currently plowing my way through Logstash configuration according to this guide:

https://www.elastic.co/guide/en/logstash/5.2/advanced-pipeline.html

On this page, it shows how you can manually start logstash with:

bin/logstash -f first-pipeline.conf --config.reload.automatic

I really like how I can make it so I don't have to restart logstash every time I make a change to my grok filters. How can I add the reload.automatic option to the default service startup?

Logstash 5.2.0 is installed on CentOS 7, if that helps.

Looks like that's configured at /etc/logstash/startup.options:

LS_OPTS="--path.settings ${LS_SETTINGS_DIR} --config.reload.automatic"

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.