Re: [squid-users] How to rotate Cache.log

2011-09-30 Thread Amos Jeffries

On Fri, 30 Sep 2011 00:30:01 +0200, John Kimble wrote:

Hi all,

My cache file is getting too big (250mb) so it becomes really hard to
view the log file.

I tried to rotate is using  Squid -k rotate but it does nothing to
either the cache.log or access.log. I read about using debug_options
rotate=n but not sure how this directive will work. Does n means 
the

number of cache.log that squid will keep?

Regards,
Nick


Yes rotate=n in 3.2 limits cache.log, if it should be smaller than 
access.log.


logfile_rotate sets for all logs, the number to keep of each file 
output.


If you are using a pre-packaged squid it is likely the distributor has 
set it to 0 and integrated with whatever OS log management is available.


Question is though why your cache.log is getting so big in the first 
place. It should only have rare messages about serious problems.


Amos


Re: [squid-users] How to rotate Cache.log

2011-09-30 Thread Helmut Hullen
Hallo, Amos,

Du meintest am 30.09.11:

 My cache file is getting too big (250mb) so it becomes really hard
 to view the log file.

[...]

  Question is though why your cache.log is getting so big in the first
  place. It should only have rare messages about serious problems.

That can happen. I've seen log files with more than 2 GByte too.

A bit more precise: squid rotates them if they are bigger than 2  
GByte. And then the next 2 Gbyte were filled, but the partition wasn't  
big enough. All happened within less than 24 hours.

But I've seen this nasty behaviour only 1 time in the many last years.

Viele Gruesse!
Helmut


[squid-users] How to rotate Cache.log

2011-09-29 Thread John Kimble
Hi all,

My cache file is getting too big (250mb) so it becomes really hard to
view the log file.

I tried to rotate is using  Squid -k rotate but it does nothing to
either the cache.log or access.log. I read about using debug_options
rotate=n but not sure how this directive will work. Does n means the
number of cache.log that squid will keep?

Regards,
Nick