Dear all,

I have Puppet 3.3.1 and rsyslog and RedHat 6.
My problem is that I want to see the message "Finished catalog" only in the 
file /var/log/puppet/agent.log, but rsyslog sends it to the syslog server 
and than to netcool. It is also shown in /var/log/messages.
I only want to see error message like

Nov 26 13:20:36 vm7239 puppet-agent[19732]: Could not retrieve catalog from 
remote server: Error 400 on SERVER: Could not find class syslog::conf for 
vm7239.muc.baag on node vm7239.muc.baag
Nov 26 13:20:36 vm7239 puppet-agent[19732]: Not using cache on failed 
catalog
Nov 26 13:20:36 vm7239 puppet-agent[19732]: Could not retrieve catalog; 
skipping run

I have created a rsyslog file in rsyslog.d/

if $programname == 'puppet-agent' and $syslogseverity <= '6' then 
/var/log/puppet/agent.log
if $programname == 'puppet-agent' and $syslogseverity >= '6' then ~

I think the severity of "Finished catalog" should be low.

Can somebody please help me?

Best regards
Andreas

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/aefe6f79-e9bc-4bef-8bf6-68620cfdf657%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to