The current existing telegraf is controlled by systemctl.
I tried to add one more input : logparser.
When I restarted the telegraf with systemctl restart telegraf. The logparser is loaded but it doesn’t work. The data is not loaded into influxdb. I tried to comment out everything except the logparser part. It doesn’t work either.
However if I started another telegraf instance on the same box using telegraf --config telegraf_logparser.conf it works. The data is loaded into Influxdb.
I compared the two configuration files. There is no difference. I don’t understand why the systemctl one
Is any reason behind this? I want to start only one telegraf instance.
Thanks a lot