Skip to content

[WIP] Adapting ingest pipelines to new date parsing in ES#10543

Closed
ycombinator wants to merge 2 commits intoelastic:masterfrom
ycombinator:fb-es-adapt-pipelines-time-parsing
Closed

[WIP] Adapting ingest pipelines to new date parsing in ES#10543
ycombinator wants to merge 2 commits intoelastic:masterfrom
ycombinator:fb-es-adapt-pipelines-time-parsing

Conversation

@ycombinator
Copy link
Copy Markdown
Contributor

@ycombinator ycombinator commented Feb 4, 2019

Elasticsearch recently changed how it parses timestamps, which introduced a regression. Ideally, the regression can be fixed but this PR is the "backup plan".

This PR tries to adapt Filebeat's ingest pipelines to work with both the old timestamp parsing logic in Elasticsearch (in case users run Filebeat with an older version of ES) as well as the new parsing logic.

As a demonstration, at the moment this PR only adapts the pipelines in the elasticsearch Filebeat module.

@ycombinator ycombinator requested a review from a team as a code owner February 4, 2019 19:14
@ycombinator ycombinator added the discuss Issue needs further discussion. label Feb 4, 2019
@@ -1,5 +1,6 @@
[
{
"@timestamp": "2019-01-30T14:16:20.233Z",
Copy link
Copy Markdown
Contributor Author

@ycombinator ycombinator Feb 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good news: the @timestamp field is back!

Bad news: if you compare the value of this field vs. the value in the raw log line that generated it, you'll notice that the time zone in this field, Z, is incorrect. It should be -0800 instead. Alternatively, the time here should be 22:16:20.233Z.

Copy link
Copy Markdown
Contributor Author

@ycombinator ycombinator Feb 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same goes for all other @timestamp fields in this PR that are being generated from timestamps with time zones in the raw logs.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We definitively need support back for the time zones.

@ycombinator
Copy link
Copy Markdown
Contributor Author

@webmat @spinscale @ruflin WIP / discussion PR to demonstrate the challenges with trying to adapt Filebeat ingest pipelines to work with the new timestamp parsing logic in ES.

@ycombinator
Copy link
Copy Markdown
Contributor Author

This PR is no longer necessary as the regressions in ES have been fixed in ES itself! Closing unmerged.

@ycombinator ycombinator deleted the fb-es-adapt-pipelines-time-parsing branch December 25, 2019 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

discuss Issue needs further discussion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants