-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
Ingest node date processor uses stale year information on calendar year change #22547
Labels
Comments
pprkut
changed the title
Ingest node data processor uses stale year information on calendar year change
Ingest node date processor uses stale year information on calendar year change
Jan 11, 2017
clintongormley
added
:Data Management/Ingest Node
Execution or management of Ingest Pipelines including GeoIP
>bug
labels
Jan 11, 2017
@talevy Did you have a solution for this in Logstash that can be ported to ingest? |
Oops, I wasn't aware of this pre-existing issue that we had in logstash-filter-date. I see the solution we came up with in Logstash, I'll see how we can do something similar in Elasticsearch |
talevy
added a commit
to talevy/elasticsearch
that referenced
this issue
Jan 23, 2017
…tion. Beforehand, the DateProcessor constructs its joda pattern formatter during processor construction. This led to newly ingested documents being defaulted to the year that the pipeline was constructed, not that of processing. Fixes elastic#22547.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Elasticsearch version:
5.1.1
JVM version:
1.8.0.111
OS version:
CentOS 7.3
Description of the problem including expected versus actual behavior:
I'm feeding /var/log/secure to elasticsearch, using filebeat and ingest node. This worked fine before the new year, but then I noticed entries appearing with a one year old timestamp.
Turns out, the date processor was parsing the date string "Jan 2 23:59:48" as "2016-01-02T23:59:48.000Z". Restarting elasticsearch caused new entries to get the correct year information.
More info available here.
Possibly related to logstash-plugins/logstash-filter-date#3
The text was updated successfully, but these errors were encountered: