Re: rotatate logs - Apache has anyone got this to rotate at a specific time?

  • From: kathy duret <katpopins21@xxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Fri, 16 Oct 2009 09:53:37 -0700 (PDT)

I am using the rotatelog function via Linux and it works.
 
I have looked and the doc  Rich mentioned as well as others
 
I can't shutdown the services to rotate the logs.
 
I have tried the CustomLog as well
 
CustomLog is for the Acces_log and Errorlog works for the error_log
 
the issue is with trying to get the rotation to occur at midnight.
 
Thanks.

--- On Fri, 10/16/09, Rich Jesse <rjoralist@xxxxxxxxxxxxxxxxxxxxx> wrote:


From: Rich Jesse <rjoralist@xxxxxxxxxxxxxxxxxxxxx>
Subject: Re: rotatate logs - Apache has anyone got this to rotate at a specific 
time?
To: oracle-l@xxxxxxxxxxxxx
Date: Friday, October 16, 2009, 10:40 AM


Hey Kathy,

> I am using the rotatelog function for my Apache logs.
>  
> ErrorLog "|/u01/Apache/Apache/bin/rotatelogs
> /u01/app/oracle/product/sso10g/Apache/Apache/logs/error_log.%Y%m%d 86400"

My kneejerk would be to use the CustomLog directive instead of ErrorLog as
noted here: http://httpd.apache.org/docs/2.2/programs/rotatelogs.html

As always, test first!  GL!

Rich

--
//www.freelists.org/webpage/oracle-l





      

Other related posts: