I'm working on making sure puppet-agent logs are written to /var/log/puppetlabs/puppet/agent.log only.
By creating /etc/syslog.d/puppet.conf with the following content logs are written to the requested files but they are still written to /var/log/messages
I edited /etc/syslog.conf with adding
And not just puppet-agent but no other logs are written to messages anymore
Any ideas how to solve this?
Ps: editing puppet.conf is not a option
By creating /etc/syslog.d/puppet.conf with the following content logs are written to the requested files but they are still written to /var/log/messages
Code:
!puppet-agent
*.* /var/log/puppetlabs/puppet/agent.log
puppet-agent.none
but this caused
Code:
syslogd: exiting on signal 15
Code:
*.notice;puppet-agent.none;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages
Any ideas how to solve this?
Ps: editing puppet.conf is not a option