thanks

-----Messaggio originale-----
Da: Mar Matthias Darin [mailto:[EMAIL PROTECTED] 
Inviato: lunedì 21 gennaio 2008 23.45
A: [email protected]
Oggetto: Re: [squid-users] Keep the access log

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/

Reply via email to