[core.logging] Provide mechanism for configuring default appenders for specific loggers #92082
Labels
enhancement
New value added to drive a business result
Feature:Logging
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
In #87939 we merged support for request/response logging to the KP. One of the issues that surfaced was that logs suddenly became very cluttered as the
LogMeta
that's attached to the response logs can be quite large.The temporary workaround we discussed was to simply remove
meta
from the defaultpattern
layout, so that folks would need to "opt-in" to view the meta when using pattern layout by defining a custom appender.However, a more ideal approach might be to have a mechanism where you could specify context-specific appender defaults to apply when no other configuration is provided, as discussed in #90457. This might be a little similar to the Elasticsearch default logging config file.
A solution like this could solve a variety of problems, such as:
Once we remove the injected "default" legacy appender in 8.0, it might be a good time to consider this as an enhancement.
We'd need to discuss how to implement this, but in general I'd imagine a dedicated file where the defaults are specified, and then get merged into the logging config's
configSchema.defaultValue
& applied whenever the logging system is upgraded.The text was updated successfully, but these errors were encountered: