Telegraf LogParser Example Not running

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:

flush_interval = "5s"
metric_batch_size = 1000

files = [“C:\Users\USER\Documents\test.log”]
from_beginning = true
name_override = “grok_logparser”

patterns = [’%{TIMESTAMP_ISO8601:timestamp:ts-“2006-01-02 15:04:05”} value=%{NUMBER:value:int}’]

files = [“stdout”, “C:\Users\USER\Documents\results.txt”]
flush_interval = “1s”
metric_batch_size = 10

Nothing seems to output. Thanks for the help.

Does it help if you add watch_method = "poll" to the logparser config (above the grok section)?

I just was testing that and it does not. I do get an output to my stdout file if I use %GREEDYDATA, but not with the example patterns.

I wonder if it could be a file encoding error, for example we don’t currently have support for UTF-16 logs in this plugin. Can you check the encoding of the file or attach it here?