12.3. Configuring Logging to Journal

You can configure Satellite to manage logging with Journal. Journal then forwards log messages to rsyslog and rsyslog writes the log messages to /var/log/messages. Note that after this change the log messages do not appear in /var/log/foreman/production.log or /var/log/foreman-proxy.log any more.

For more information about Journal, see Using the Journal in the Red Hat Enterprise Linux 7 System Administrator’s guide.

Procedure

To configure Satellite Server logging with Journal, complete the following steps:

  1. Enter the following satellite-installer command to configure logging to journald:

    # satellite-installer --foreman-logging-level info \
    --foreman-logging-type journald \
    --foreman-logging-layout pattern --foreman-proxy-log JOURNAL
  2. Restart the Apache daemon:

    # satellite-maintain service restart --only httpd