Re: [squid-users] Keep the access log

From: Slacker <slacker@dont-contact.us>
Date: Mon, 21 Jan 2008 17:15:46 +0500

J. Peng, on 01/21/2008 04:53 PM [GMT+500], wrote :
> config squid to rotate logs and write a script to put the logs into
> remote host with large disks,ie, a store device.
>
> On Jan 21, 2008 6:32 PM, Netmail <netmail@elmo.it> wrote:
>
>> Hi
>> I want to keep the access log of my squid for 5 years ; how to for set this
>> option ?
>> Thanks !
>>
>>
>>
we are keeping 6 months of logs on remote host.

1. enable log rotation for squid (keeping 1 is fine)

2. setup ssh key authentication between backup and squid hosts.

3. create a script to compress and SCP log file to bkp-host with
somthing like ....

rm -f /logbakup/*

tar -czvf /logbakup/access.log_`date +%Y%m%d%H%M`.tar.gz
/var/log/squid/access.log.0

scp /logbakup/*.tar.gz userid@xxx.xxx.xxx.xx:/squid-backups/

regards.
Received on Mon Jan 21 2008 - 05:15:56 MST

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