Re: Access.log File

From: Leonardo Rodrigues <coelho@dont-contact.us>
Date: Mon, 12 Jun 2000 14:07:44 -0300

At 16:34 12/06/00 +0000, you wrote:
>Hi! The Access.log file at the company i'm working has
>become huge ( 75 Mbytes ). I wonder if it's possible
>to "reset" it on a daily basis, so that the logs
>registered on this file will refer only to one day ( and
>the file changing daily )? This file is used to control
>the daily traffic.

         Easy easy. Try adding this line to your crontab:

0 01 * * * /path/to/squid -k rotate 1>/dev/null 2>/dev/null

         This will make squid rotate the logs files ( access.log,
cache.log, store.log and swap.log - or the ones enabled ) everyday, at 1AM.

         And donīt forget to verify logfile_rotate at squid.conf, so you
can choose how many old log files will be archived before getting deleted.
Received on Mon Jun 12 2000 - 11:12:02 MDT

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