-
Notifications
You must be signed in to change notification settings - Fork 5k
[Packetbeat] Fix Packetbeat parsing mongodb OP_MSG #40589
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
Conversation
* Fixes handling OP_MSG based request/response, missing "end" timestamp and "duration" field for the event * Cleanup
|
Pinging @elastic/sec-deployment-and-devices (Team:Security-Deployment and Devices) |
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
fearful-symmetry
left a comment
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 don't have a lot of MongoDB context, but the code looks fine.
Proposed commit message
Fix Packetbeat parsing mongodb OP_MSG
Addresses the issue #28858 that makes packetbeat unusable for any newer thatn 5.0 version of MongoDB.
The legacy "mongodb" property is not populated and probably we should not try to map the new protocol into the legacy data structures. Instead using the document from the request BSON ecoded body to populate the "query" and "request" (if requested) fields in the format compatible with the previous implmentation for now.
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Related issues
Screenshots
Couple of examples of OP_MSG documents with query and request fields