Stop puppet spamming /var/log/messages
Posted in Operating Systems, Linux, Fedora, Debian, Suse, Red Hat, Tips on Monday, December 9, 2013 by cam
Hate Spam? Hate Puppet Spam in var/log/messages more? Quick buy now!
# Edit /etc/puppet/puppet.conf # In the [agent] section add: syslogfacility = local6 # Edit: vi /etc/rsyslog.conf # Do a quick to see if local6 is being used somewhere else first... # Add a line: local6.* /var/log/puppet/puppet.log # Add setup the permissions and file touch /var/log/puppet/puppet.log chown puppet:puppet /var/log/puppet/puppet.log chmod 640 /var/log/puppet/puppet.log service rsyslog reload
And your done!