squid-users  

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

Baird, Josh
Fri, 12 Mar 2010 06:55:11 -0800

I am trying to ignore requests from two IP addresses in my access_log.
These two hosts connect every second and do "health checks" of the proxy
service and I would like to eliminate the access_log spam that they
create.  Here is what I am trying:

acl loadbalancers src 172.26.100.136/255.255.255.255
acl loadbalancers src 172.26.100.137/255.255.255.255
access_log /var/log/squid/access.log squid !loadbalancers

This does not seem to have any effect.  Requests from 172.26.100.136 and
.137 are still appearing in the access_log.  Any ideas?

Running Squid 2.6 from EL5:  squid-2.6.STABLE21-3.el5.

Thanks,

Josh