Closed zhugw closed 7 years ago
I had the same issue but got one step further. Looking at sample configuration in logparser.go, I see the timezone option needs to be inside the custom_patterns declaration.
custom_patterns = '''
timezone = "Canada/Eastern"
'''
That said, no matter what I do to timezone, even setting it to rubbish, I don't get the desired result.
This feature was only added for the upcoming Telegraf 1.4.
The docs.influxdata.com
page currently links to the latest development documentation, sorry about the confusion. I have an issue opened to address this here: https://github.com/influxdata/docs.influxdata.com/issues/1195
My log is like this
My customer pattern
but actually I got time is
1500130647796000000
(Sat Jul 15 22:57:27 CST 2017) and actually I want is2017-07-15 14:57:27
So I explicitly add
timezone
withininputs.logparser.grok
as README describedbut I got below error
My
telegraf
version is