RE: Apache log rotation

From: Sébastien Cantos (scantos@technodiva.com)
Date: Fri Dec 30 2005 - 06:55:00 EST


Seems that this example from the man page will do the work. Thanks for
answering.

% logadm -w apache -p 1m -C 24\
  -t '/var/apache/old-logs/$basename.%Y-%m'\
  -a '/usr/apache/bin/apachectl graceful'\
  '/var/apache/logs/*{access,error}_log'

Regards,

--
Sebastien Cantos <scantos@technodiva.com>
Network / System Manager
Neopost DIVA
> -----Message d'origine-----
> De : Radu [mailto:radu@boltblue.com]
> Envoyi : vendredi 30 dicembre 2005 12:18
> @ : Sibastien Cantos
> Objet : Re: Apache log rotation
>
> You can try to read the following link and adapt it for your apache:
> http://www.sun.com/bigadmin/content/submitted/solaris_logadm.html
>
> Simply looks like you have to send a kill -HUP to httpd or maybe use
> something like "/right_path/bin/apachectl graceful" after you
> rotate the
> logs.
>
> Or maybe even better search for apache examples in the following URL:
> http://www.scit.wlv.ac.uk/cgi-bin/mansec?1M+logadm
>
> Good luck,
> Radu
>
> Sibastien Cantos wrote:
> > Hi,
> >
> > I would like to configure logadm to rotate apache logs.
> Could someone show
> > me an example configuration please ?
> >
> > Regards,
> > --
> > Sebastien Cantos <scantos@technodiva.com>
> > Network / System Manager
> > Neopost DIVA
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:38:17 EDT