[squid-users] R: [squid-users] Keep the access log

From: Netmail <netmail@dont-contact.us>
Date: Tue, 22 Jan 2008 10:32:56 +0100

thanks

-----Messaggio originale-----
Da: Mar Matthias Darin [mailto:BDarin@tanaya.net]
Inviato: lunedì 21 gennaio 2008 23.45
A: squid-users@squid-cache.org
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/
Received on Tue Jan 22 2008 - 02:34:02 MST

This archive was generated by hypermail pre-2.1.9 : Fri Feb 01 2008 - 12:00:05 MST