Kanishka Hettiarachchi
2011-Nov-02 18:45 UTC
[Puppet Users] puppet agent writing on /var/log/messages
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. 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Christopher Wood
2011-Nov-02 18:57 UTC
Re: [Puppet Users] puppet agent writing on /var/log/messages
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+unsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jo Rhett
2011-Nov-03 07:44 UTC
Re: [Puppet Users] puppet agent writing on /var/log/messages
--logdest=/some/file/name on the cli, or set as a parameter in puppet.conf. Right now it appears your logdest is syslog. On Nov 2, 2011, at 11:45 AM, Kanishka Hettiarachchi wrote:> 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. > > 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+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >-- Jo Rhett Net Consonance : consonant endings by net philanthropy, open source and other randomness -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Kanishka Hettiarachchi
2011-Nov-03 23:44 UTC
[Puppet Users] Re: puppet agent writing on /var/log/messages
Thanks so much for the input On Nov 2, 2:57 pm, Christopher Wood <christopher_w...@pobox.com> wrote:> 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+unsubscribe@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en.- Hide quoted text - > > - Show quoted text --- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Kanishka Hettiarachchi
2011-Nov-03 23:44 UTC
[Puppet Users] Re: puppet agent writing on /var/log/messages
thanks a lot On Nov 3, 3:44 am, Jo Rhett <jrh...@netconsonance.com> wrote:> --logdest=/some/file/name on the cli, or set as a parameter in puppet.conf. Right now it appears your logdest is syslog. > > On Nov 2, 2011, at 11:45 AM, Kanishka Hettiarachchi wrote: > > > > > > > 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. > > > 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+unsubscribe@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en. > > -- > Jo Rhett > Net Consonance : consonant endings by net philanthropy, open source and other randomness- Hide quoted text - > > - Show quoted text --- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.