Project

General

Profile

Feature #22588

Installer support for JSON logging for Foreman and backend systems

Added by Lukas Zapletal about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

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).


Related issues

Related to Foreman - Tracker #22569: Unified and structured loggingAssigned

History

#1 Updated by Lukas Zapletal about 1 year ago

#2 Updated by Lukas Zapletal about 1 year ago

  • Description updated (diff)

Also available in: Atom PDF