-
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
Migrate to ECS Filebeat modules populating http size and duration metrics #10188
Conversation
@ruflin I'd like your opinion on the two questions outlined in the PR body. For both questions, you can look at the code, because I went ahead and did what I'm suggesting. Open to discussion, however. This is pretty much ready to go, except for the changelog. |
cb7f693
to
ee3d0b6
Compare
Unrelated test failure (heartbeat) |
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.
+1 on on the painless part. For the event.duration not 100% sure I can follow. So we map the existing fields to event.duration or not use it at all?
ee3d0b6
to
285b0dd
Compare
@ruflin Ok ready for another review, including for both caveats. Now that my painless is working, the caveats will make more sense :-) |
From the @elastic/stack-monitoring perspective this LGTM but let's see if @ycombinator can come by and just verify that as well. |
@@ -8,8 +8,7 @@ | |||
"fileset.name": "log", | |||
"http.request.method": "get", | |||
"http.request.referrer": "http://localhost:5601/app/kibana", | |||
"http.response.content_length": 9, | |||
"http.response.elapsed_time": 26, |
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.
We should mention the removal of this field these two fields in the breaking changes section of the CHANGELOG.
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.
Yes, agreed. I've often glossed over the details, for the module-specific fields (e.g. "migrate apache.access.*
").
But these two deserve a special mention indeed, since they could have been mistaken for ECS fields.
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.
Just a minor comment about mentioning breaking changes in the CHANGELOG. Otherwise LGTM.
Changelog too chatty? Rest of the PR is approved and hasn't been touched. |
I'm also reusing the same pattern of using a temp field, prior to computing `event.duration`. This will reduce compilations, as both the `script` and `if` arguments are exactly the same code, from one module to the other. Only the `scale` param needs to be adjusted, depending if one has millis, micros, etc.
Not nested under the special `_ingest`
Based on my suggestion over on Andrew's PR: elastic#10193 (comment)
fc18add
to
a39361f
Compare
Rebased over master. I'm starting another PR on top of this one, to finish the |
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.
For the Changelog: If we document every single field we changed, it definitively gets too chatty. What I have in mind is that we will have a doc page with all the fields that we changed so users can go there to look it up.
@ruflin Yeah we should definitely have a generated page that explains "the ECS migration" in plain terms, and is followed by the exhaustive list of fields migrated (aliases, durations that moved to event.duration with a different scale, etc). Then the changelogs related to ECS could be simplified, and all link to that "ECS migration" documentation page. I'll rewrite the changelog a bit, then we should be good. |
Ok, pushed one changelog entry per field (duration and body.bytes). Merging right away. Hit me up for a follow-up PR, if these are still problematic. |
This PR finishes the migration of http size and time metrics for all relevant Filebeat modules. This had already started happening in the more recent module transitions. This PR finishes up the work all at once.
Questions
event.duration
should be the single place to record the overall duration. I would remove them, and mark then in ecs-migration.yml as migrated, withalias: false
. Any disagreements?Modules/filesets affected
List of aliased field migrations
response size
request size
Event duration
No aliases, as scale is different. Original fields removed.
TODO