On Tue, Apr 19, 2011 at 6:30 AM, Ben Hughes <b...@puppetlabs.com> wrote:
> On Mon, Apr 18, 2011 at 09:16:13AM -0700, Kal McFate wrote: > > > How do I tell puppet to log somewhere other than /var/log/messages. None > of > > the logging configuration options seem to do anything any more. > Specifically > > puppetdlog. > > /var/log/messages, will, I presume, be your syslog daemon's logging. > > It logs at syslogfacility daemon by default. Set syslogfacility to > a different level in your puppet.conf and adjust your syslog accordingly. > > Or you may use --logdest /path/to/file on the command line if you wish. > As an additional option, you can use rsyslog, which is the default in recent Redhat-ish distributions and has been available since RH5.2. It's also available for many other Linux and non-Linux platforms. On RHEL5, the following works (put this in /etc/rsyslog.conf): :programname, isequal, "puppet-agent" /var/log/puppet/agent.log :programname, isequal, "puppet-agent" ~ This might also work for later releases of rsyslog, nevertheless, on Fedora >= 10 and RHEL6 we use: if $programname == 'puppet-agent' and $syslogseverity <= '6' then /var/log/puppet/agent.log if $programname == 'puppet-agent' and $syslogseverity <= '6' then ~ HTH, Gerald -- 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.