-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to disable timestamp adjustment in grok parser #5488
Conversation
Let's call the option |
@@ -358,6 +365,10 @@ func (p *Parser) ParseLine(line string) (telegraf.Metric, error) { | |||
return nil, fmt.Errorf("grok: must have one or more fields") | |||
} | |||
|
|||
if p.UniqueTimestamp != "auto" { | |||
return metric.New(p.Measurement, tags, fields, timestamp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is backwards, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, not equals
Resolves #5394 by adding
disable_time_mod
option to grok parser.