Project

General

Profile

Actions

Feature #22588

open

Installer support for JSON logging for Foreman and backend systems

Added by Lukas Zapletal almost 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
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 1 (1 open0 closed)

Related to Foreman - Tracker #22569: Unified and structured loggingAssignedLukas Zapletal

Actions
Actions #1

Updated by Lukas Zapletal almost 7 years ago

Actions #2

Updated by Lukas Zapletal almost 7 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF