-
Notifications
You must be signed in to change notification settings - Fork 24.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
Make Elasticsearch JSON logs ECS compliant #47105
Conversation
Pinging @elastic/es-core-infra |
@elasticmachine update branch |
merge conflict between base and head |
ok to test |
within nonEmpty fixing diewithdignity so that pattern does not rely on order and package name adding ES_LOG_LINE parser so this functionality can be tested in JsonThrowablePatternConverterTests
cutom logging config it test to look for [\w-]
…ts.java Co-Authored-By: Rory Hunter <[email protected]>
…ch into feature/ecs-log-lib
build.gradle
Outdated
@@ -118,6 +118,9 @@ subprojects { | |||
':distribution:tools:plugin-cli', | |||
':qa:os', | |||
':qa:wildfly', | |||
':qa:die-with-dignity', | |||
':qa:logging-config', | |||
':qa:evil-tests', |
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've changed this to an opt-out list in gradle/formatting.gradle
, so you should remove these project paths from the list in that file.
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
@elasticmachine run elasticsearch-ci/bwc |
Updating log4j2 configuration to use
EcsLayout
for our JSON logs https://github.com/elastic/ecs-logging-java instead of previously usedESJsonLayout
We still test against 7.x
ESJsonLayout
to make sure users won't break because of this change. Because of this the previous infrastructure still stays.This might be worth discussing if we can break them with this. I personally feel that introducing JSON in 7 and then breaking users in 8 might be annoying.
Notable differences compared to 7.x ES JSON:
tags
field - previously markers were prefix in a message field%-25c{1.}
for instanceo.e.n.Node
node_and_cluster_id
which not usable with ecs-java-layout libcloses #46119