Project

General

Profile

Actions

Feature #22570

open

Enable syslog for candlepin

Added by Lukas Zapletal over 6 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 #1

Updated by Lukas Zapletal over 6 years ago

Actions #2

Updated by Lukas Zapletal almost 6 years ago

  • Status changed from New to Assigned

Pattern proposal:

<pattern>@cee:{"message":"%m","foreman":{"request":"%X{csid}","org_id":"%X{org}"},"candlepin":{"thread":"%thread","request_type":"%X{requestUuid}","request_uuid":"%X{requestUuid}"}%n</pattern>
Actions #3

Updated by Zach Huntington-Meath over 4 years ago

  • Status changed from Assigned to New
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF