Skip to content

Unify Kibana & Elasticsearch logging config keys #57551

@mshustov

Description

@mshustov

The config keys naming in Kibana logging config follows the log4j2 conventions https://logging.apache.org/log4j/2.x/manual/configuration.html
While the logging config in elasticsearch follows a bit different convention. https://www.elastic.co/guide/en/elasticsearch/reference/current/logging.html
https://github.com/elastic/elasticsearch/blob/a4a79670f85d5c135c1ad668c387808fffd733f7/qa/logging-config/src/test/resources/org/elasticsearch/common/logging/json_layout/log4j2.properties
Some examples, not full:

Kibana logging config Elasticsearch logging config
logging.appenders.xxx appender.xxx
logging.loggers.xxx logger.xxx
logging.root.xxx rootLogger.xxx
logging.appenders.xxx.kind appender.xxx.type

We can narrow the naming difference as much as possible to reduce the cognitive load on the consumer. We still can have logging-prefix to follow the platform principles, even though the platform is allowed to have exceptions to the rule.

Kibana logging config Kibana config follows ES conventions
logging.appenders.xxx logging.appender.xxx
logging.loggers.xxx logging.logger.xxx
logging.root.xxx logging.root.xxx
logging.appenders.xxx.kind logging.appender.xxx.type

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions