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
<[EMAIL PROTECTED]
om> To
[email protected]
14/11/2007 10:19 cc
AM
Subject
Re: [EMAIL PROTECTED] rotatelogs clean
Please respond to up
[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
> " from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]