Alternative to running logstash from the command line

I have a perfect working solution on ELK. The only issue that I am facing is that I want the logstash config to be run in the background as compared to running in the command line:
/usr/share/logstash/bin/logstash --path.settings /etc/logstash/ -f /path/to/file

Any suggestions on how I can configure logstash.yml to run the configuration in the background?

That is not a feature of logstash. You would have to start logstash using a service manager. On Windows you might use NSSM, on UNIX it would be whatever service manager your flavour of UNIX uses -- initd, systemd, etc. If your service manager is systemd then logstash will have installed the service and all you need to do us enable or start it using systemctl.

If you search these forums for the name of your service manager you will find solutions to some problems you may run into.

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