{Project} uses file-based logging by default.
You can use the {foreman-installer}
command to reconfigure logging.
Procedure for configuring logging with Journal
-
Enter the following
{foreman-installer}
command to configure logging to thejournald
service:# {foreman-installer} \ --foreman-logging-type journald \ --foreman-proxy-log JOURNAL
-
Optional: To inspect the log messages, use the
journalctl
utility. For example:-
journalctl --unit foreman
andjournalctl --unit foreman-proxy
show messages for theforeman
andforeman-proxy
units -
journalctl REQUEST=request_ID
shows messages for a specified request
-
Procedure for configuring file-based logging
-
Enter the following
{foreman-installer}
command to configure file-based logging:# {foreman-installer} \ --reset-foreman-logging-type \ --reset-foreman-proxy-log
-
Optional: To inspect the log messages, view these files:
-
/var/log/foreman/production.log
-
/var/log/foreman-proxy.log
-