Feature #22559
closedConfigure foreman to log to system journal
Description
Currently Foreman is configured to do simple file appender logging which requires restarts of Rails during log rotation or sending signal. It makes integration with 3rd party logging stacks more difficult. Foreman core now has new configuration options (#22493) to log to system journal and syslog with some enhancements like structured entries.
The goal of this change is to configure Foreman by default to log to:
logger: systemd (or syslog for platforms without system journal)
layout: multiline_pattern
facility: LOG_LOCAL6
In addition to that, installer will deploy the following /etc/rsyslog.d/foreman.conf config file:
local6.* /var/log/foreman/production.log
This will make sure that all logs are found where they were before the change for easy transition. Users can now enable persistent system journal to take advantage of new features like structured fields, no rotation or sealing.
Updated by Lukas Zapletal over 6 years ago
- Related to Feature #22493: Add new logging options to integrate with logging-journald gem added
Updated by Lukas Zapletal over 6 years ago
- Related to Tracker #22569: Unified and structured logging added
Updated by The Foreman Bot over 6 years ago
- Assignee set to Ewoud Kohl van Wijngaarden
- Pull request https://github.com/theforeman/puppet-foreman/pull/631 added
Updated by Lukas Zapletal over 6 years ago
Started discussion at:
https://community.theforeman.org/t/default-logging-in-foreman-file-syslog-or-journald/8675
Updated by Lukas Zapletal over 6 years ago
- Pull request deleted (
https://github.com/theforeman/puppet-foreman/pull/631)
Updated by The Foreman Bot over 6 years ago
- Pull request https://github.com/theforeman/puppet-foreman/pull/631 added
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
Updated by Lukas Zapletal over 6 years ago
- Status changed from Ready For Testing to Closed
- Translation missing: en.field_release set to 353
Updated by Tomer Brisker about 6 years ago
- Triaged set to No
- Fixed in Releases added
Updated by Ewoud Kohl van Wijngaarden about 6 years ago
- Fixed in Releases 1.19.0 added
- Fixed in Releases deleted (
)
Updated by Ewoud Kohl van Wijngaarden about 6 years ago
- Target version changed from 867 to 1.19.0