OpenSearch/distribution/archives
Przemyslaw Gomulka 891320f5ac
Elasticsearch support to JSON logging (#36833)
In order to support JSON log format, a custom pattern layout was used and its configuration is enclosed in ESJsonLayout. Users are free to use their own patterns, but if smooth Beats integration is needed, they should use ESJsonLayout. EvilLoggerTests are left intact to make sure user's custom log patterns work fine.

To populate additional fields node.id and cluster.uuid which are not available at start time, 
a cluster state update will have to be received and the values passed to log4j pattern converter.
A ClusterStateObserver.Listener is used to receive only one ClusteStateUpdate. Once update is received the nodeId and clusterUUid are set in a static field in a NodeAndClusterIdConverter. 

Following fields are expected in JSON log lines: type, tiemstamp, level, component, cluster.name, node.name, node.id, cluster.uuid, message, stacktrace
see ESJsonLayout.java for more details and field descriptions

Docker log4j2 configuration is now almost the same as the one use for ES binary. 
The only difference is that docker is using console appenders, whereas ES is using file appenders.

relates: #32850
2019-01-29 07:20:09 +01:00
..
integ-test-zip Elasticsearch support to JSON logging (#36833) 2019-01-29 07:20:09 +01:00
oss-tar Build: Split distributions into oss and default 2018-04-20 15:33:57 -07:00
oss-zip Build: Split distributions into oss and default 2018-04-20 15:33:57 -07:00
tar Build: Remove rest tests on archive distribution projects (#28952) 2018-03-08 19:46:54 -08:00
zip Build: Remove rest tests on archive distribution projects (#28952) 2018-03-08 19:46:54 -08:00
build.gradle Upgrade to Gradle 5.0 (#34263) 2018-12-05 14:06:11 +02:00