OpenSearch/qa
Jason Tedor fbe27664a6 Fix prefix logging
Today we add a prefix when logging within Elasticsearch. This prefix
contains the node name, and index and shard-level components if
appropriate.

Due to some implementation details with Log4j 2 , this does not work for
integration tests; instead what we see is the node name for the last
node to startup. The implementation detail here is that Log4j 2 there is
only one logger for a name, message factory pair, and the key derived
from the message factory is the class name of the message factory. So,
when the last node starts up and starts setting prefixes on its message
factories, it will impact the loggers for the other nodes.

Additionally, the prefixes are lost when logging an exception. This is
due to another implementation detail in Log4j 2. Namely, since we log
exceptions using a parameterized message, Log4j 2 decides that that
means that we do not want to use the message factory that we have
provided (the prefix message factory) and so logs the exception without
the prefix.

This commit fixes both of these issues.

Relates #20429
2016-09-13 14:46:34 -04:00
..
backwards-5.0 Prepare master branch to be 6.0.0-alpha1 2016-09-08 12:55:30 +02:00
evil-tests Fix prefix logging 2016-09-13 14:46:34 -04:00
smoke-test-client Merge branch 'master' into log4j2 2016-08-31 16:37:55 -04:00
smoke-test-http Remove ESIntegTestCase#pluginList 2016-08-11 15:44:02 -04:00
smoke-test-ingest-disabled ingest: Made the response format of the get pipeline api match with the response format of the index template api 2016-07-29 17:58:30 +02:00
smoke-test-ingest-with-all-dependencies Add support for parameters to the script ingest processor 2016-08-24 16:49:48 -04:00
smoke-test-multinode Rename client yaml test infrastructure 2016-07-26 13:53:44 -04:00
smoke-test-plugins Rename client yaml test infrastructure 2016-07-26 13:53:44 -04:00
smoke-test-reindex-with-painless Circuit break the number of inline scripts compiled per minute 2016-08-09 10:26:27 -06:00
vagrant Add quiet option to disable console logging (#20422) 2016-09-13 14:08:24 +02:00