Closed ahivert closed 8 years ago
Similar issue on RedHat EL5! Also with tail plugin!
It's probably a permissions issue, try running sudo -u telegraf telegraf -config ...
, the telegraf user must have permission to access that file.
that being said, if it is a permissions issue, there should be an error message about that.
I just made the test and you're right @sparrc this is about permission on log file.
Thank you !
Add an error message to the log will help the user. :)
I installed Telegraf this morning and configured logparser. Nothing's been written all day, and I suspect its permissions. Telegraf gives no indicator of that in /var/log/telegraf/telegraf.log, though
I'm testing the awesome new logparser plugin but I have trouble to made it work.
Actually with this version
Running it on Ubuntu 14.04
This is my conf with logparser
This settings works when I type
telegraf
in my console but not work when I launch telegraf withservice telegraf start
When I launch telegraf in my console I can see the lines
But when I launch it from
service telegraf start
this is the lines in logfileThe line with
Seeked
is not presentsIf I set only the logparser plugin, there is 0 metric gathered.
Maybe this is normal due to the beta release ?