Syslog logger is at http://seattlerb.rubyforge.org/SyslogLogger/
install w/ gem
gem install SyslogLogger
A “free” quick n dirty method to get chef-client (and chef-solo) to log syslog
gem install
Add the following to /etc/chef/client.rb (or solo.rb)
— [ begin snip ] —
require 'syslog_logger’
Chef::Log.logger = SyslogLogger.new(“chef”)
— [ end snip ] —
Ideally this would be a patch to chef-(solo|client) which could easily
be configured correctly. but for immediate future, this fits the
bill.
Cheers,
~ Sig
Thanks for posting this. I have been wondering if I could get the
chef-client logs into syslog, seems easy enough.
-Joe
On Mon, 14 Sep 2009 08:58:54 -0700
Sig Lange sig.lange@gmail.com wrote:
Syslog logger is at http://seattlerb.rubyforge.org/SyslogLogger/
install w/ gem
gem install SyslogLogger
A "free" quick n dirty method to get chef-client (and chef-solo) to
log syslog
gem install
Add the following to /etc/chef/client.rb (or solo.rb)
--- [ begin snip ] ---
require 'syslog_logger'
Chef::Log.logger = SyslogLogger.new("chef")
--- [ end snip ] ---
Ideally this would be a patch to chef-(solo|client) which could easily
be configured correctly. but for immediate future, this fits the
bill.
Cheers,
~ Sig
--
Name: Joseph A. Williams
Email: joe@joetify.com
Blog: http://www.joeandmotorboat.com/
On Tue, Sep 15, 2009 at 6:37 PM, Joe Williams joe@joetify.com wrote:
Thanks for posting this. I have been wondering if I could get the
chef-client logs into syslog, seems easy enough.
Agreed, looks interesting. I'm currently overhauling our syslog
infrastrucutre, so this could be a nice addition.
Will test tomorrow, cheers!!
Joel
--
$ echo "kpfmAdpoofdufevq/dp/vl" | perl -pe 's/(.)/chr(ord($1)-1)/ge'
On Tue, Sep 15, 2009 at 10:48 AM, Joel Merrick joel.merrick@gmail.comwrote:
On Tue, Sep 15, 2009 at 6:37 PM, Joe Williams joe@joetify.com wrote:
Thanks for posting this. I have been wondering if I could get the
chef-client logs into syslog, seems easy enough.
Agreed, looks interesting. I'm currently overhauling our syslog
infrastrucutre, so this could be a nice addition.
Will test tomorrow, cheers!!
Joel
Is there any reason why chef-client and chef-server shouldn't log to syslog
by default?
--
Joe Van Dyk
http://fixieconsulting.com
On Tue, Sep 15, 2009 at 8:20 PM, Joe Van Dyk joe@fixieconsulting.comwrote:
Is there any reason why chef-client and chef-server shouldn't log to syslog
by default?
I second this question. Is there any reason why?