Re: LOG Files

From: Ole Møller <olm@dont-contact.us>
Date: Mon, 03 Nov 1997 10:52:26 +0100

>How do I recycle the LOG Files (access.log and store.log) generated by
>Squid. Is there any parameter or
>option to specify that squid to initialise the log files after X many days
>as the size of the Log files is
>increasing enormously? Or is there any option to move the log files to some
>other directories
>automatically after the certain specified days?

The logfiles are rotated when squid receives the USR1 signal. I have an
entry in my crontab like this:

/bin/kill -USR1 `cat /usr/local/squid/logs/squid.pid`

This rotates the logfile. In addition I have configured squid only to keep
the latest logfiles by setting the configuration-parameter logfile_rotate
to 1.

Regards

Ole Møller olm@cybercity.dk, Sysadm CyberCity Internet
If a train station is where the train stops,
               what is a work station?
Received on Mon Nov 03 1997 - 02:20:20 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:25 MST