-
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
[Filebeat] Improve ECS categorization field mappings for nginx module #17844
Conversation
Pinging @elastic/siem (Team:SIEM) |
- access + event.kind + event.category + event.type + event.outcome + lowercase http.request.method + improve grok to not populate empty fields + related.ip + related.users - error + event.kind + event.category + event.outcome - ingress_controller + event.kind + event.category + event.type + event.outcome + lowercase http.request.method + improve grok to not populate empty fields + related.ip + related.users Closes elastic#16174
efea78e
to
500fb47
Compare
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.
LGTM. Nice PR description listing the exact changes BTW.
…7844) - access + event.kind + event.category + event.type + event.outcome + lowercase http.request.method + improve grok to not populate empty fields + related.ip + related.users - error + event.kind + event.category + event.outcome - ingress_controller + event.kind + event.category + event.type + event.outcome + lowercase http.request.method + improve grok to not populate empty fields + related.ip + related.users Closes elastic#16174 (cherry picked from commit 93c3d15)
"http.request.method": "GET", | ||
"http.request.referrer": "-", | ||
"http.request.method": "get", |
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 looks like a breaking change? GET
is now lowercased, also referrer is now missing
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.
I'm fine with marking this as a breaking change.
Some background.
http.request.referrer is an ECS field and docs say "The field value must be normalized to lowercase for querying." So that is why the change to lowercase.
http.request.referrer isn't missing, the GROK pattern was changed so it is only filled in when nginx logs a referrer an actual referrer. "-" is the same as not present.
PR elastic#17844 introduced the following changes: - http.request.method is now lowercase - http.request.referrer is only set when nginx provides a value This PR updates the CHANGELOG to report this as a breaking change.
…17940) - access + event.kind + event.category + event.type + event.outcome + lowercase http.request.method + improve grok to not populate empty fields + related.ip + related.users - error + event.kind + event.category + event.outcome - ingress_controller + event.kind + event.category + event.type + event.outcome + lowercase http.request.method + improve grok to not populate empty fields + related.ip + related.users Closes #16174 (cherry picked from commit 93c3d15)
PR #17844 introduced the following changes: - http.request.method is now lowercase - http.request.referrer is only set when nginx provides a value This PR updates the CHANGELOG to report this as a breaking change.
…#18026) PR elastic#17844 introduced the following changes: - http.request.method is now lowercase - http.request.referrer is only set when nginx provides a value This PR updates the CHANGELOG to report this as a breaking change. (cherry picked from commit 0de9b67)
What does this PR do?
Improves ECS categorization field mappings for nginx module. Specifically it adds:
Why is it important?
Improved ECS compliance improves use in SIEM application and makes comparing data across data sources easier.
Checklist
- [ ] I have made corresponding changes to the documentation- [ ] I have made corresponding change to the default configuration filesCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues
Closes #16174