TomonoriSoejima / Tejun

notes related to working cases
5 stars 3 forks source link

How to add --config.reload.automatic to service file #70

Open TomonoriSoejima opened 2 years ago

TomonoriSoejima commented 2 years ago

1 . add the following to /etc/systemd/system/logstash.service

"--config.reload.automatic"

It should look like this once it is added.

ExecStart=/usr/share/logstash/bin/logstash "--path.settings" "/etc/logstash" "--config.reload.automatic"

  1. reload the config
    sudo systemctl daemon-reload
    sudo systemctl stop logstash.service
    sudo systemctl start logstash.service