Re: [squid-users] Remove entries from access.log

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 28 Dec 2010 09:32:36 +1300

On 27/12/10 07:09, David Touzeau wrote:
> Dear
>
> I have these entries in access.log
>
> squid-maison.localhost - - [26/Dec/2010:19:05:13 +0100] "GET
> cache_object://127.0.0.1/diskd HTTP/1.0" 200 679 TCP_MISS:NONE
> squid-maison.localhost - - [26/Dec/2010:19:05:13 +0100] "GET
> cache_object://127.0.0.1/store_io HTTP/1.0" 200 431 TCP_MISS:NONE
<snip>
>
> I woul like to force squid not logging events came from 127.0.0.1,
>
> Is it possible to do that ?

Yes, but slightly dangerous. These are cachemgr requests. Be careful
other general requests don't come from localhost as well before omitting
from the logs. Or you could just block the "manager" ACL requests being
logged.

The log_access directive allows global control:
   http://www.squid-cache.org/Doc/config/log_access

The access_log local ACL set allows per-log control:
   http://www.squid-cache.org/Doc/config/access_log

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.10
   Beta testers wanted for 3.2.0.4
Received on Mon Dec 27 2010 - 20:32:41 MST

This archive was generated by hypermail 2.2.0 : Tue Dec 28 2010 - 12:00:03 MST