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/
Received on Mon Jan 21 2008 - 15:44:59 MST
This archive was generated by hypermail pre-2.1.9 : Fri Feb 01 2008 - 12:00:05 MST