You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marc MENDEZ <cn...@yahoo.fr> on 2006/08/10 15:58:38 UTC

[users@httpd] rotatelogs and gzip

Hi,

I use rotate logs like with this line :

CustomLog "|/usr/sbin/rotatelogs 
/var/log/httpd/access_adagio_aspe_fr.log-%Y-%m-%d-%H_%M_%S 5M" combined

Is there a way to compress the old log with gzip for instance ?
Should I use logrotate instead ?

Thanks for your suggestions !


	

	
		
___________________________________________________________________________ 
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. 
http://fr.answers.yahoo.com 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] rotatelogs and gzip

Posted by SOPRO <so...@gmail.com>.
Hi Marc,

 I use logrotate and it's work fine for me... :-)
 I created a separate file for apache: /etc/logrote.d/apache

/var/log/apache/access_log
/var/log/apache/error_log
/var/log/apache/ssl_engine_log
/var/log/apache/ssl_request_log {
    postrotate
        /usr/sbin/apachectl graceful
    endscript
}

 Fabricio.

2006/8/10, Marc MENDEZ <cn...@yahoo.fr>:
> Hi,
>
> I use rotate logs like with this line :
>
> CustomLog "|/usr/sbin/rotatelogs
> /var/log/httpd/access_adagio_aspe_fr.log-%Y-%m-%d-%H_%M_%S 5M" combined
>
> Is there a way to compress the old log with gzip for instance ?
> Should I use logrotate instead ?
>
> Thanks for your suggestions !
>
>
>
>
>
>
> ___________________________________________________________________________
> Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet !
> Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences.
> http://fr.answers.yahoo.com
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org