-
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] [MongoDB] Support MongoDB 4.4 json logs #24774
[Filebeat] [MongoDB] Support MongoDB 4.4 json logs #24774
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
/test |
Pinging @elastic/integrations (Team:Integrations) |
@tetianakravchenko thanks for this contribution! Failure in tests seems related:
I think the problem is that new pipelines need to be added to the manifest in |
/test |
/test |
Hi there, {"t":{"$date":"%{TIMESTAMP_ISO8601:timestamp}"},"s":"%{WORD:severity}",%{SPACE}"c":"%{WORD:component}",%{SPACE}"id":%{INT:id},%{SPACE}"ctx":"%{DATA:context}","msg":"%{GREEDYDATA:message} I hope, release come soon. Thanks! |
/test |
Hi there! |
Hi @jsoriano, as I see that build is failing mainly with timeout error:
or
is there anything I can do here? |
@tetianakravchenko try updating your branch with master, failing tests can be related to outdated files. |
I have updated the branch, let's see if tests pass now 🤞 |
/test |
I think there is same error here E Failed: Timeout >90.0s |
I am not sure why other modules fail, but there seems to be a problem with the change in the MongoDB module. Running the tests locally I see this error in filebeat logs:
There seems to be a problem with the pipeline. I can reproduce the error running the following command from the After running the tests, logs are available in @tetianakravchenko can you take a look? |
thank you for the hint, I will have a look 👍 |
…move redundant rename
Hi @jsoriano. Locally I have the command below running successfully after the latest changes
Could you please trigger tests? |
/test |
Thanks @tetianakravchenko! I can confirm that tests pass now locally for me, let's wait for CI 🤞 |
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.
@tetianakravchenko sorry, one last thing, could you please add a changelog entry in the CHANGELOG.next.asciidoc
file? For the rest it LGTM, thanks!
/test |
This pull request is now in conflicts. Could you fix it? 🙏
|
/test |
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, thanks!
G8 work! When it can be released and which version? |
@cihantunali this will be likely available in Filebeat 7.14.0. |
MongoDB 4.4 uses structured JSON format for logging, add support for this format while keeping support for the old one too. (cherry picked from commit 3752526)
Looking again at this change, I think that we should store the message in the |
@jsoriano my idea was to keep the original log message, as it contains |
@tetianakravchenko good point, ok, I will keep the original message but under the ECS |
MongoDB 4.4 uses structured JSON format for logging, add support for this format while keeping support for the old one too. (cherry picked from commit 3752526) Co-authored-by: Tetiana Kravchenko <tanya.kravchenko.v@gmail.com>
Change applied to integrations in elastic/integrations#1138. |
MongoDB 4.4 uses structured JSON format for logging, add support for this format while keeping support for the old one too.
* master: (25 commits) Fix UBI source URL (elastic#26384) Skip test_rotating_file in osx and windows (elastic#26379) Remove outdated k8s manifests for managed elastic-agent (elastic#26368) Enable agent to send custom headers to kibana/ES (elastic#26275) [Automation] Update elastic stack version to 8.0.0-943ef2c0 for testing (elastic#26354) Make the Syslog input GA (elastic#26293) Move Kerberos FAST config flag to shared kerberos config (elastic#26141) Add k8s cluster identifiers (elastic#26056) Store message from MongoDB json logs in message field (elastic#26338) update threatintel ECS version (elastic#26274) update envoyproxy ECS version (elastic#26277) [Filebeat] [MongoDB] Support MongoDB 4.4 json logs (elastic#24774) Update go-structform to 0.0.9 (elastic#26251) Forward port 7.13.2 changelog to master (elastic#26323) Updated filter expression for filtering 86 artifacts (elastic#26313) Osquerybeat: Align with the rest of the beats, set the ECS version (elastic#26324) [Packetbeat] Add `url.extension` to Packetbeat HTTP events (elastic#25999) Change link to snapshots in README (elastic#26317) Don't include full ES index template in errors (elastic#25743) First refactor of the system module - system/cpu and system/core (elastic#25771) ...
What does this PR do?
MongoDB 4.4 changed logs to a structured JSON format, this PR adds support for mongodb logs json format, and support the old format too.
Why is it important?
to support new logs format in filebeat MongoDB module.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs