I was trying to use the grok logparser with Telegraf, but when trying the example:
2017-02-21 13:10:34 value=42
and running it with the config of:
[agent]
flush_interval = "5s"
metric_batch_size = 1000
[[inputs.logparser]]
files = [“C:\Users\USER\Documents\test.log”]
from_beginning = true
name_override = “grok_logparser”
[inputs.logparser.grok]
patterns = [’%{TIMESTAMP_ISO8601:timestamp:ts-“2006-01-02 15:04:05”} value=%{NUMBER:value:int}’]
[[outputs.file]]
files = [“stdout”, “C:\Users\USER\Documents\results.txt”]
flush_interval = “1s”
metric_batch_size = 10
Nothing seems to output. Thanks for the help.