Re: rotatelogs clean up

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

 



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@xxxxxxx                                             
             om>                                                        To 
                                       users@xxxxxxxxxxxxxxxx              
             14/11/2007 10:19                                           cc 
             AM                                                            
                                                                   Subject 
                                       Re:  rotatelogs clean  
             Please respond to         up                                  
             users@xxxxxxxxxxx                                             
                   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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>
>

--
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux