You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSON logging implementation used at the moment (v7) is pretty simplistic and there is almost no way to modify or extend the way the messages are logged.
The goal is to refactor the implementation to allow:
move SlowLog fields from message field to independent JSON fields.
doable - but won't be advertised - [ ] adding additional fields which could be hardcoded in a log4j configuration, looked up (as per previous log4j.JSONLayout) or calculated and populated from plugins. Not sure we need that - haven't noticed plugin authors asking for this.
out of scope - [ ] possibility to override fields format (different log timestamp format, overriding class (component) formatting etc) Again, do we need this? - [ ] reconfigure Slow Logs to exclude fields from logs Add option to disable source logging for search slow log #22683 - [ ] move markers (from PrefixLogger) from message to its own field in a JSON log message
JSON logging implementation used at the moment (v7) is pretty simplistic and there is almost no way to modify or extend the way the messages are logged.
The goal is to refactor the implementation to allow:
log4j.JSONLayoutstyle where additional fields can be added (serach for "To include any custom field")X-Opaque-Idfor Deprecated Logging Include origin information in deprecation logging #34127doable - but won't be advertised
- [ ] adding additional fields which could be hardcoded in a log4j configuration, looked up (as per previouslog4j.JSONLayout) or calculated and populated from plugins. Not sure we need that - haven't noticed plugin authors asking for this.out of scope
- [ ] possibility to override fields format (different log timestamp format, overriding class (component) formatting etc) Again, do we need this?- [ ] reconfigure Slow Logs to exclude fields from logs Add option to disable source logging for search slow log #22683- [ ] move markers (fromPrefixLogger) from message to its own field in a JSON log message