Closed
Description
I'm testing the awesome new logparser plugin but I have trouble to made it work.
Actually with this version
Telegraf - version 1.0.0-beta2
Running it on Ubuntu 14.04
This is my conf with logparser
[[inputs.logparser]]
files = [ "/var/log/nginx/access.log" ]
[inputs.logparser.grok]
patterns = [ "%{COMMONAPACHELOG} %{QS:referrer} %{QS:agent}" ]
This settings works when I type telegraf
in my console but not work when I launch telegraf with service telegraf start
When I launch telegraf in my console I can see the lines
Loaded inputs: cpu disk diskio net nginx logparser mem system
Seeked /var/log/nginx/access.log - &{Offset:0 Whence:2}
But when I launch it from service telegraf start
this is the lines in logfile
Loaded inputs: diskio net nginx logparser mem system cpu disk
The line with Seeked
is not presents
If I set only the logparser plugin, there is 0 metric gathered.
Maybe this is normal due to the beta release ?