Search squid archive

Re: Keep the access log

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

 



Netmail writes:
Hi
I want to keep the access log of my squid for 5 years ; how to for set this
option ? Thanks !

I use Logger to manage all my logs. I keep all my logs in /var/log for ease of use and have them prefixed with "Squid_". Here is the script I use on my backup machine to handle the compression et all:
#!/bin/bash
export PATH=/usr/local/bin:/usr/bin:/bin:/sbin:
export D=`date -d yesterday +"%y%j"`

tar -cp /var/log/Squid_*.$D | bzip2 -9 >> /Backup/Squid.bz2
rm /home2/log/Squid_*.$D &> /dev/null


Logger automatically rotates all my logs daily and my log data is transmitted from my squid server to my backup machine automatically. I don't keep the logs on my squid server. ---
Logger:  Taking control of system logs.
http://freshmeat.net/projects/slogger/

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

  Powered by Linux