-
Notifications
You must be signed in to change notification settings - Fork 76
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
Support Logback MDC (Mapped Diagnostic Context) #60
Comments
The MDC is already mapped to So |
Hello, @felixbarny I this still true, with version 0.4.0?
Since, I got my MDC is located in the root level of my log as follow.
And, this is log4j2.xml file
|
Since 0.3.0, MDC is mapped to the top level. If you want to nest it under labels, set The |
Hello @felixelastic, Thank you for quick reply, and I found related issue HERE Here is example value of 'url' and 'jdbc' MDC.
I commented this problem HERE |
You could define either a Filebeat rename processor or an Elasticsearch ingest node rename processor to rename the field. Tip: better create new issues with references to old issues rather than commenting on closed ones. I hope this helps :) |
See http://logback.qos.ch/manual/mdc.html
This is an easy way to add context information to every log event. Things like current user, transaction, source hostname/ip, etc. MDC includes a Servlet filter which injects information about the inbound connection, it would be awesome if we could map that to the ECS equivalent fields.
The text was updated successfully, but these errors were encountered: