Starting telegraf from a Windows service


I am attempting to start telegraf from a Windows service but no matter what I do the telegraf executable just quits with no discernible output.

Is there a way of starting the telegraf executable, as an executable, not service, from a Windows service?

What is the error? If it is error #1067 “Process terminated …”, try giving the full path of telegraf.conf in the install command. For e.g.

cd <telegraf_dir>
telegraf.exe --config “<telegraf_dir\telegraf.conf>” --service install

1 Like