Logstash as a windows service

Could someone help me in installing the Logstash CONF file as a windows service, till date we are running with the command prompt, which will stuck quite often. so wanted to have it as windows service and keep running forever.

I tried doing it with nssm but no luck, it doesnt add any path executables. Is there any way around doing this. Please let me know.

You can create a batch file which launches Logstash, and use nssm to run that batch file as a service. For instance, create a run.bat file in the bin folder with the following command

logstash.bat -f /path/to/logstash.config

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