Actions
Feature #22588
openInstaller support for JSON logging for Foreman and backend systems
Status:
New
Priority:
Normal
Assignee:
-
Category:
Foreman modules
Target version:
-
Description
Foreman will soon get ability to log to JSON format natively.
Candlepin supports ability to configure logging pattern to arbitrary string: http://www.candlepinproject.org/docs/candlepin/logging.html
Pulp team was asked to add the same configuration option: https://pulp.plan.io/issues/3372
After this is added to pulp, we need an installer option in katello scenario called for example log_format
. When set to json
instead of plain
, installer will configure foreman components (rails, proxy) to log to JSON and for candlepin/pulp it will create a pseudo-JSON logging pattern that will be easily parseable for 3rd parties:
{ "message": "%m", "request": "%X{requestUuid}", "org": "%X{org}", "correlation": "%X{csid}" }%n
Similarly for Pulp (it will likely have different replacement keys).
Updated by Lukas Zapletal almost 7 years ago
- Related to Tracker #22569: Unified and structured logging added
Actions