i am at the moment using a vbs script to do this
This script works perfectly for some hours and stops for no reason. Can anyone point to me what is wrong with the script? How do i add logstash-forwarder to run as a service? I am having a hard time trying to figure out how to do this?
any help is appreciated.
Set WshShell = CreateObject("WScript.Shell")
cmds=WshShell.RUN("E:\logstash\logstash-forwarder.exe --config E:\logstash\conf.txt", 0, True)
Set WshShell = Nothing
Try the below batch command. You don't need to install nssm. You just need the nssm exe on the current directory.