[chef] Re: Re: Re: How to rotate /var/log/chef/client.log?


Chronological Thread 
  • From: Michael Herman < >
  • To:
  • Subject: [chef] Re: Re: Re: How to rotate /var/log/chef/client.log?
  • Date: Tue, 24 Jul 2012 09:44:29 +1000

My only issue with using logrotate, is that if chef-client is mid-run at the time logrotate executes, it gets killed.

Rgds,

mgh

On Tue, Jul 24, 2012 at 9:21 AM, KC Braunschweig < " target="_blank"> > wrote:
Logrotate worked for me too. I never got back around to setting up
logging via syslog. Anyone else go that route with good results?

KC

On Mon, Jul 23, 2012 at 2:25 PM, Larry Wright < "> > wrote:
> I usually just use the logrotate cookbook, which works great.
>
>
> On Mon, Jul 23, 2012 at 4:21 PM, Steve Jang < "> > wrote:
>>
>> Hi, Folks!
>>
>> Is there a best practice for rotating chef client logs?
>> I was thinking about using report/exception handler to rotate the log once
>> a day.
>> (http://wiki.opscode.com/display/chef/Exception+and+Report+Handlers)
>>
>> -Steve
>>
>




Archive powered by MHonArc 2.6.16.

§