[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Logrotate help on my isp webserver



On Mon, Oct 17, 2005 at 03:20:57AM -0700, Radhika wrote:
>  I want to configure my logrotate configuration file as follows
>  we need  keep all clients monthly logs to /var/log/apache2/logs folder
> Under this folder we have different clients directories.Each directory
> should contain the logfiles that is access.log and error.log files for
> each folder.Every month end logrotate should run and it should keep the
> log files in monthnameandyear folder with monthnameandyear.tgz file.
>  
>  How to configure this in logrotate.conf
>  
> Example:-
>  
> logfiles location /var/log/apache2/logs under this folder every client is
> having their folder for logs
> in side that apache log files are there i.e error.log,access.log.
>  
>  Every month logrotate should run and it should create a folder with
> monthnameandyear under this monthname folder
> 
> that perticular month logfiles .tgz file shouls be there.
>  
> ex:- /var/log/apache2/logs/bahu/may2005/may2005.log.tgz

Cronolog can do this. Apt-get install cronolog...

Bye for now,
Ward.
-- 
Pong.be         -(   "WE are the constituency.  DRM is THEFT." -- Ruben    )-
Virtual hosting -(                          Safir                          )-
http://pong.be  -(                                                         )-
GnuPG public key: http://gpg.dtype.org



Reply to: