OpenSearch/docs/reference/setup
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
..
images [DOCS] Intro for adding nodes (#37202) 2019-01-15 11:11:01 -08:00
important-settings [DOCS] Merges list of discovery and cluster formation settings (#36909) 2018-12-21 11:24:48 -08:00
install Change file descriptor limit to 65535 (#37537) 2019-01-16 17:19:12 -05:00
sysconfig [DOCS] More info on disabling swap (#37248) 2019-01-25 08:39:58 +10:00
add-nodes.asciidoc [DOCS] Intro for adding nodes (#37202) 2019-01-15 11:11:01 -08:00
bootstrap-checks-xes.asciidoc [DOCS] Update X-Pack terminology in security docs (#36564) 2018-12-19 14:53:37 -08:00
bootstrap-checks.asciidoc Rename setting to enable mmap 2019-01-03 07:10:34 +01:00
configuration.asciidoc [DOCS] Correct typo in configuration (#28903) 2018-03-06 15:50:46 +01:00
important-settings.asciidoc [DOCS] Add missing docs include 2018-08-07 17:49:48 +01:00
install.asciidoc Add beta label to MSI on install Elasticsearch page (#28126) 2018-08-22 11:26:53 +10:00
jvm-options.asciidoc Reinsert paragraph about heap size 2017-12-12 11:09:24 -05:00
logging-config.asciidoc Elasticsearch support to JSON logging (#36833) 2019-01-29 07:20:09 +01:00
secure-settings.asciidoc [DOCS] Remove reload password from docs cf. #32889 2018-08-23 12:11:39 +03:00
setup-xclient.asciidoc [DOCS] Various spelling corrections (#37046) 2019-01-07 14:44:12 +01:00
setup-xes.asciidoc [DOCS] Moves X-Pack setup to docs (#31145) 2018-06-06 14:46:20 -07:00
starting.asciidoc [DOCS] Starting Elasticsearch (#31701) 2018-07-03 13:40:37 -07:00
stopping.asciidoc [DOC] Remove obsolete node names from documentation 2016-09-19 11:56:28 +02:00
sysconfig.asciidoc Add docs on JNA temp directory not being noexec (#35355) 2018-11-07 22:25:37 -05:00