OpenSearch/distribution
Przemyslaw Gomulka e23ecc5838
JSON logging refactoring and X-Opaque-ID support backport(#41354) (#44178)
This is a refactor to current JSON logging to make it more open for extensions
and support for custom ES log messages used inDeprecationLogger IndexingSlowLog , SearchSLowLog
We want to include x-opaque-id in deprecation logs. The easiest way to have this as an additional JSON field instead of part of the message is to create a custom DeprecatedMessage (extends ESLogMEssage)

These messages are regular log4j messages with a text, but also carry a map of fields which can then populate the log pattern. The logic for this lives in ESJsonLayout and ESMessageFieldConverter.

Similar approach can be used to refactor IndexingSlowLog and SearchSlowLog JSON logs to contain fields previously only present as escaped JSON string in a message field.

closes #41350
 backport #41354
2019-07-12 16:53:27 +02:00
..
archives convert EmptyDirTask.groovy to .java (#34672) 2019-06-13 12:21:23 +03:00
bwc Make packer cache branches explicit (#41990) 2019-05-27 09:46:43 +03:00
docker JSON logging refactoring and X-Opaque-ID support backport(#41354) (#44178) 2019-07-12 16:53:27 +02:00
licenses Add notice for bundled jdk (#40576) 2019-03-29 17:21:21 -04:00
packages Cleanup plugin bin directories (#41907) 2019-05-10 11:00:41 -07:00
src JSON logging refactoring and X-Opaque-ID support backport(#41354) (#44178) 2019-07-12 16:53:27 +02:00
tools Make plugin verification FIPS 140 compliant (#44266) 2019-07-12 14:34:15 +03:00
build.gradle Add missing dependencies so we can build in parallel (#43672) 2019-06-28 16:41:18 +03:00