Re: [squid-users] Huge log files

From: Alejandro Bednarik <alejandro_at_xtech.com.ar>
Date: Thu, 25 Sep 2008 12:09:21 -0300 (ART)

Amos Jeffries wrote:
> Alejandro Bednarik wrote:
>> Amos Jeffries wrote:
>>> wrote:
>>>> Hi
>>>>
>>>> My squid log files, access and store, are becoming bigger and bigger;
>>>> more than 600 megabytes each. Does it affect squid's performance? Can
>>>> I delete them and start over?
>>> store log is not really needed unless debugging storage, or doing fancy
>>> cache monitoring.
>>> You can configure that to 'store_log none'.
>>>
>>> For access.log you should be doing regular rotation of logs (squid -k
>>> rotate). It has side-effects in other areas such as cache journals,
>>> which might be more of a performance hit.
>>>
>>> Squid only appends to its logs, so the size does not really matter
>>> until
>>> they fill the whole disk space and crash something. Mine are happy up
>>> at
>>> 2GB/day for access.log and 40GB/day for debug cache.log.
>>>
>>> Amos
>>
>> Squid add an entry in logrotate directory's to do this jobs. Do you
>> have
>> cron running and logrotate installed?
>
> Yes. I have a standard self-built Debian Linux install.
> Cron does not do any rotation, logrotate does.
>
> By 'getting bigger and bigger' do you mean that each days/weeks log is
> increasing (no problem), or that the logs don't appear to be rotating?
> (problem)
>
> Amos
> --
> Please use Squid 2.7.STABLE4 or 3.0.STABLE9
>
 Cron run logrotate.

Cheers!

-- 
 Alejandro Bednarik
 XTech - Soluciones Linux para Empresas
 (011) 5219-0678
 alejandro_at_xtech.com.ar
Received on Thu Sep 25 2008 - 14:52:11 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 25 2008 - 12:00:03 MDT