-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Timestamp processor fails to parse date correctly #15012
Comments
TLDR: Go doesn't accept anything apart of a dot I have been doing some research and, unfortunately, this is a known issue in the format parser of Go language. golang/go#6189 In this issue they talk about commas but the situation is the same regarding colon. It's very inconvenient for this use case but all in all I couldn't find any easy workaround. Maybe some processor before this one to convert the last colon into a dot |
Thank you for doing that research @sayden. As a user of this functionality, I would have assumed that the separators do not really matter and that I can essentially use any separator as long as they match up in my timestamps and within the layout description. I was thinking of the At the very least, such restrictions should be described in the documentation. Ideally, we would even provide a list of supported formats (if this list is of a reasonable lenvth). Users shouldn't have to go through https://godoc.org/time#pkg-constants |
This still not working cannot parse?
|
Only true if you haven't displeased the timestamp format gods with a "non-standard" format.
|
This rfc3339 timestamp doesn't seem to work either:
|
JFYI, the linked Go issue is now resolved. |
Hi! We're labeling this issue as |
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Hi! We're labeling this issue as |
The Filebeat timestamp processor in version 7.5.0 fails to parse dates correctly. Only the third of the three dates is parsed correctly (though even for this one, milliseconds are wrong).
Input file:
filebeat.yml
:Output:
The text was updated successfully, but these errors were encountered: