On Wed, Nov 02, 2011 at 11:45:11AM -0700, Kanishka Hettiarachchi wrote: > Hello all, > > Have noticed puppet agent continue to write agent runtime output to / > var/log/messages, although $vardir, logdir default to /var/lib/puppet/ > log, agent run logs keep getting writtent to system messages file. I > recall this question has been asked before but did not see a > resolution.
Puppet logs to syslog for logs to get there. /var/log/messages on CentOS /var/log/daemon.log on Debian /var/log/syslog on Ubuntu Where the various priorities/facilities land is configured by your syslog daemon. To change puppet's facility you'd use the "syslogfacility" parameter in puppet.conf. Check your syslog documentation to get the list of facilities. Depending on the syslog daemon you could configure it to send puppet's log lines to a separate file. You'd either do this by some kind of matching or by using a local facility for puppet logging (again refer to syslog docs). Of course you'd configure your syslog daemon with puppet. > Is there a way to redirect these to a custom log file (say > $puppetdlog ?) > > Thanks > Kanishka > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.