saz / puppet-rsyslog

Manage rsyslog through puppet
Apache License 2.0
50 stars 203 forks source link

Prevent double-logging #292

Open djjudas21 opened 6 years ago

djjudas21 commented 6 years ago

On my CentOS 6 and 7 systems, everything that gets logged to /var/log/secure also appears in /var/log/messages which clutters up the log.

I believe https://github.com/saz/puppet-rsyslog/blob/master/templates/client/local.conf.erb#L9 should have an explicit STOP command, e.g.

if $programname == 'puppet-agent' then /var/log/puppet/puppet.log
&~