Thank you so much for the quick support. Am able to execute my Python script on windows
with below command
C:\"Program Files"\Telegraf\telegraf.exe --config C:\"Program Files"\Telegraf\telegraf.conf --test
It runs absolutely fine.As mentioned that I need to refer to config file which I do
C:“Program Files”\Telegraf\telegraf.exe --config C:“Program Files”\Telegraf\telegraf.conf --service install
Next I do the below
C:“Program Files”\Telegraf\telegraf.exe --service start
I receive no error in Visual studio code (Admin) but that doesn’t run the telegraf.
Next I tried
net start telegraf
Received the below error
The Telegraf Data Collector Service service is starting.
The Telegraf Data Collector Service service could not be started.
A system error has occurred.
System error 1067 has occurred.
The process terminated unexpectedly.
I even changed the log on to my own windows user acc from ‘Local System Account’
Please help what am doing wrong it executes as a test parameter but not when I try to start it.
Thanks again for the quick support.