httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GKapit...@symcor.com
Subject Re: [users@httpd] rotatelogs clean up
Date Wed, 14 Nov 2007 15:47:30 GMT
I would add something like this, in crontab:

find /private/var/log/httpd/sites/domain.com -name *_log.* -atime +7 -exec
-rm {} \;


Regards,
Gabriel



                                                                           
             jtkc                                                          
             <thirionj@yahoo.c                                             
             om>                                                        To 
                                       users@httpd.apache.org              
             14/11/2007 10:19                                           cc 
             AM                                                            
                                                                   Subject 
                                       Re: [users@httpd] rotatelogs clean  
             Please respond to         up                                  
             users@httpd.apach                                             
                   e.org                                                   
                                                                           
                                                                           
                                                                           
                                                                           





Hey Ben,

Did you ever come up with an answer to your question below?

Thanks,
JT


Benjamin Adams wrote:
>
> Apache 1.3.33
> I have:
>          ErrorLog '|/usr/sbin/rotatelogs "/private/var/log/httpd/
> sites/domain.com/error_log.%Y%m%d" 86400'
>          CustomLog '|/usr/sbin/rotatelogs "/private/var/log/httpd/
> sites/domain.com/access_log.%Y%m%d" 86400' combined
>
> in my conf so logs are created daily.
> If I want them cleaned up weekly how would I do that?
> Ben
>
> ---------------------------------------------------------------------
> 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
>
>
>

--
View this message in context:
http://www.nabble.com/rotatelogs-clean-up-tf1388723.html#a13748550
Sent from the Apache HTTP Server - Users mailing list archive at
Nabble.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


Mime
View raw message