Search squid archive

RE: access.log

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

 



I made a litle shell script that does that but instead of ftp y rsync to
another server whare the file is processed


I use centos 4 so I created an entry in crontab where I run this every 8
minutes

#!/bin/bash
rsync /var/log/squid/access.log -e ssh webcache1@xxxxxxxxxxxx:webcache1.log
cat /dev/null > /var/log/squid/access.log
squid -k rotate

Hope this helps



---------------------------
Fernando Rodriguez


-----Mensaje original-----
De: Firas A. Mubarak [mailto:mubarak316@xxxxxxxxx] 
Enviado el: miércoles, 20 de junio de 2007 09:24 a.m.
Para: squid-users@xxxxxxxxxxxxxxx
Asunto:  access.log

Dear All,

I have to store my access.log files for 6 months. i need to log rotate the 
file every 6 hours and then get it uploaded to a local FTP server 
automatically.

any ideas ?

Thanks
Firas 



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux