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


Chronological Thread 
  • From: KC Braunschweig < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: How to rotate /var/log/chef/client.log?
  • Date: Mon, 23 Jul 2012 18:07:26 -0700

Are you doing a restart as part of the rotation? You could do
copytruncate and skip the restart. Logs might get split mid run but it
shouldn't stop the run.

KC

On Mon, Jul 23, 2012 at 4:44 PM, Michael Herman 
< >
 wrote:
> 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 
> < >
> 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.

§