Re: [squid-users] LOG File access.log

From: Joe Cooper <joe@dont-contact.us>
Date: Fri, 22 Nov 2002 04:24:18 -0600

Looks good to me.

Make sure logrotate is running via cron on a daily basis. And make sure
the paths to the Squid log files are correct.

Nataniel Klug wrote:

> Joe,
>
> I saw in my /etc/logrotate.d/ that exists a file named squid and
> it contains the
> folowing:
>
> /var/log/squid/access.log {
> daily
> rotate 2
> copytruncate
> compress
> notifempty
> missingok
> }
> /var/log/squid/cache.log {
> weekly
> rotate 2
> copytruncate
> compress
> notifempty
> missingok
> }
>
> /var/log/squid/store.log {
> weekly
> rotate 2
> copytruncate
> compress
> notifempty
> missingok
> # This script asks squid to rotate its logs on its own.
> # Restarting squid is a long process and it is not worth
> # doing it just to rotate logs
> postrotate
> /usr/sbin/squid -k rotate
> endscript
> }
>
> Is this correct for rotating access.log by day and store just two
> files? And cache.log
> by week and store two files?
>
> Nataniel
>
> ----- Original Message -----
> From: "Joe Cooper"
> To: "Nataniel Klug"
> Cc:
> Sent: Friday, November 22, 2002 8:09 AM
> Subject: Re: [squid-users] LOG File access.log
>
>
> : Are you rotating your logs on a regular basis? (I use logrotate for
> : this task.)
> :
> : Nataniel Klug wrote:
> :
> : > Hi,
> : >
> : > I am having a big problem with a file from squid. When I start
> : > Squid it generates only
> : > two log files (access.log and cache.log, the other one I set to
> : > "none"). My problem is
> : > that the file access.log is growing to much and it starts to overcome
> : > my hardrive. How can
> : > I disable this log os even make it smaller?
> : >
> : > Nataniel Klug

-- 
Joe Cooper <joe@swelltech.com>
Web caching appliances and support.
http://www.swelltech.com
Received on Fri Nov 22 2002 - 03:24:20 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:11:32 MST