On Friday, October 12, 2012 at 12:34 PM, Matt Ray wrote:
Not sure why the console output isn't being captured, perhaps it's a bug? What version of Chef are you using?If you're looking to capture it to some alternate format, here's a thread that touches on using syslog and splunk for capture chef-client output.
http://comments.gmane.org/gmane.comp.sysutils.chef.user/891
Thanks,Matt RaySenior Technical Evangelist | Opscode Inc."> | (512) 731-2218Twitter, IRC, GitHub: mattray
From: Michael Glenney [ "> ]
Sent: Friday, October 12, 2012 2:13 PM
To: ">
Subject: [chef] Trying to capture output
We have our chef-client setup in client.rb to send the log to a log file. And we have 'verbose_logging true' so that the output also goes to the console. I need to capture that console output and I can't seem to do it. That leads me to believe that when chef is teeing that output it's not sending the 2nd stream to STDOUT. Otherwise I'd be able to capture it with a simple 'chef-client > chefout'
Any idea how chef is able to send that to my console without using STDOUT? If I knew I might be able to figure out how to capture it. I don't know how to find that in the code but if someone could point me to it I might be able to figure it out.
Or, if you just have the answer or know how to capture it you could just tell me and that'd be ok too :)
MG
Archive powered by MHonArc 2.6.16.