OpenSearch/docs/reference/migration/migrate_7_0
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
..
aggregations.asciidoc Require combine and reduce scripts in scripted metrics aggregation (#33452) 2018-10-03 15:22:01 +01:00
analysis.asciidoc [Analysis] Deprecate Standard Html Strip Analyzer in master (#26719) 2019-01-09 12:42:00 +09:00
api.asciidoc [DOCS] Update X-Pack terminology in security docs (#36564) 2018-12-19 14:53:37 -08:00
cluster.asciidoc [Zen2] Update documentation for Zen2 (#34714) 2018-12-20 13:02:44 +00:00
discovery.asciidoc [Zen2] Update documentation for Zen2 (#34714) 2018-12-20 13:02:44 +00:00
indices.asciidoc lower fielddata circuit breaker's default limit (#27162) 2018-12-11 11:30:58 +01:00
java.asciidoc Remove the AbstracLifecycleComponent constructor with Settings (#37523) 2019-01-17 09:10:09 +01:00
logging.asciidoc Elasticsearch support to JSON logging (#36833) 2019-01-29 07:20:09 +01:00
low_level_restclient.asciidoc [DOCS] Synchronize location of Breaking Changes (#33588) 2018-09-27 08:41:38 -07:00
mappings.asciidoc Uppercasing some docs section title (#37781) 2019-01-24 22:54:55 +01:00
packaging.asciidoc [DOCS] Synchronize location of Breaking Changes (#33588) 2018-09-27 08:41:38 -07:00
plugins.asciidoc Add Tribe removal to breaking changes list (#36239) 2018-12-10 10:23:58 -07:00
restclient.asciidoc [DOCS] Synchronize location of Breaking Changes (#33588) 2018-09-27 08:41:38 -07:00
scripting.asciidoc Delete deprecated getValues from ScriptDocValues (#36183) 2018-12-14 07:56:47 -05:00
search.asciidoc Track total hits up to 10,000 by default (#37466) 2019-01-25 13:45:39 +01:00
settings.asciidoc Remove TLS 1.0 as a default SSL protocol (#37512) 2019-01-25 15:46:39 +11:00
snapshotstats.asciidoc [DOCS] Synchronize location of Breaking Changes (#33588) 2018-09-27 08:41:38 -07:00