Project

General

Profile

Actions

Feature #22570

open

Enable syslog for candlepin

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

Status:
New
Priority:
Normal
Assignee:
-
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

By default candlepin uses rolling file appender, we want it to log into syslog which is currently supported upstream. Use local4 facility for all logs. By default candlepin does put correlation id (csid) on each line, the logging line should look like:

<pattern>[%X{requestType}=%X{requestUuid}, org=%X{org}, csid=%X{csid}] %-5p %c - %m%n</pattern>

More details how to configure syslog for candlepin: http://www.candlepinproject.org/docs/candlepin/logging.html#logging-to-syslog

Also configure syslog to file all local4 logs into /var/log/candlepin/candlepin.log so users find it on the old path for easy transition. In the first phase, candlepin will only log in plaintext. Although it is possible to change the pattern to log in JSON format, installer will not support that for now.


Related issues 1 (1 open0 closed)

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

Actions
Actions

Also available in: Atom PDF