Search squid archive

Re: Ignore requests from certain hosts in access_log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok, that sort of worked.  I have a pair of load balancers sitting in
front of my Squid proxy farm. The load balancers insert the
X-Forwarded-For header into each HTTP request which allows Squid to log
their connections using their real client source IP (extracted from
X-Forwarded-For).  In reality, the connections to the squid servers are
being made directly from the load balancers.

When I use log_access to deny logging to the load balancer's IP
addresses, -nothing- gets logged to access_log.  I am attempting to not
log the "health HTTP checks" from 10.26.100.130/10.26.100.131 but still
log the other traffic.  It doesn't seem that log_access is
X-Forwarded-For aware?  Any ideas?

acl loadbalancers src 10.26.100.130/255.255.255.255
acl loadbalancers src 10.26.100.131/255.255.255.255
log_access deny !loadbalancers

Thanks,

Josh

From: "Baird, Josh" <jbaird@xxxxxxxxxxx>
> 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 
> theycreate.  
> 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?

What about 'log_access' ?

JD


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux