Actions
Feature #22570
openEnable syslog for candlepin
Status:
New
Priority:
Normal
Assignee:
-
Category:
Foreman modules
Target version:
-
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.
Updated by Lukas Zapletal almost 7 years ago
- Related to Tracker #22569: Unified and structured logging added
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>
Updated by Zach Huntington-Meath over 4 years ago
- Status changed from Assigned to New
- Triaged changed from No to Yes
Actions