Configure foreman to log to system journal
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)
In addition to that, installer will deploy the following /etc/rsyslog.d/foreman.conf config file:
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.
#4 Updated by Lukas Zapletal 12 months ago
Started discussion at: