Syslog
To use syslog
, set reports = log
in the main
section of /etc/puppet/puppet.conf
and report=true
on all the nodes, as shown in the following snippet:
[main] reports = log [agent] report = true
After restarting httpd
on our masters, we'll see catalog compilation messages from nodes appearing in our syslog
logs. By default, Puppet will use the daemon
facility to change the facility set syslogfacility
in the [main]
section of puppet.conf
. To determine your current facility, use the following command:
# puppet master --configprint syslogfacility daemon
On our system using rsyslog
, we can have all Puppet report messages go into a Puppet logfile using syslogfacility = local5
, as shown in the following snippet:
[main] reports = log syslogfacility ...
Get Mastering Puppet now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.