Re: [squid-users] Ignore requests from certain hosts in access_log

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 20 Mar 2010 13:29:12 +1300

Baird, Josh wrote:
> And, you still see the non-healthcheck, normal traffic logged using the X-Forwarded-For information?

Yes.

>
> Here is my entire config, maybe this will help:
<snip>
>
> # We want to append the X-Forwarded-For header for Websense
> follow_x_forwarded_for allow loadbalancers
> log_uses_indirect_client on
> acl_uses_indirect_client on
>
> # Define Logging (do not log loadbalancer health checks)
> access_log /var/log/squid/access.log squid
> log_access deny !loadbalancers

Gah. Stupid me not reading that right earlier.

Means: deny all requests that are NOT loadbalancers.

You are wanting:
   log_access deny loadbalancers

So sorry.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE8 or 3.0.STABLE25
   Current Beta Squid 3.1.0.18
Received on Sat Mar 20 2010 - 00:29:20 MDT

This archive was generated by hypermail 2.2.0 : Mon Mar 22 2010 - 12:00:05 MDT