Running logstash in background in linux

I want to run logstash in background on linux server
i am using command like this on bin path

nohup ./logstash -f sample.conf&

is it correct way to run the logstash or anything else
but then I need to read nohup.out file everytime s I can't figure out the data is fully indexed to eleastic search or not

The recommended way to run logstash in background is to run it as a service, after installing using a package manager as rpm or deb.

Then you would just start and stop the service as needed.

You can read more in this part of the documentation.

1 Like

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