Here's a brute-force method that came to mind:
if $programname == 'puppet-agent' and $syslogseverity == '0' then /var/log/puppet/agent-0.log
if $programname == 'puppet-agent' and $syslogseverity == '1' then /var/log/puppet/agent-1.log
if $programname == 'puppet-agent' and $syslogseverity == '2' then /var/log/puppet/agent-2.log
if $programname == 'puppet-agent' and $syslogseverity == '3' then /var/log/puppet/agent-3.log
if $programname == 'puppet-agent' and $syslogseverity == '4' then /var/log/puppet/agent-4.log
if $programname == 'puppet-agent' and $syslogseverity == '5' then /var/log/puppet/agent-5.log
if $programname == 'puppet-agent' and $syslogseverity == '6' then /var/log/puppet/agent-6.log
if $programname == 'puppet-agent' and $syslogseverity == '7' then /var/log/puppet/agent-7.log
Do this a few times so that you will be certain.
Hope this helps.
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
From: "Andreas Dvorak" <
andreas...@gmail.com>
To: puppet...@googlegroups.comSent: Tuesday, November 26, 2013 7:32:33 AM
Subject: [Puppet Users] Puppet agent messages with rsyslog