[squid-users] squid4.12 access_log

Amos Jeffries squid3 at treenet.co.nz
Fri Jul 24 13:19:33 UTC 2020


On 24/07/20 7:06 pm, Thomas Elsaesser wrote:
> Dear all,
> 
> my squid server are behind  HW loadbalancer. This make TCP  Healthchecks
> on squid port.
> Now(after update from squid 3 to 4) i have in the log massive  messages:
> how can i discard this messages from this two LB ip's?
> 
> acl noTransactionError src 10.XX.XX.XX 10.XX.XX.XX
> access_log              /var/log/squid4/access.log combined 
> !noTransactionError
> 

Place this as the first access_log line (order matters for these):

  access_Log none noTransactionError


I would also name that ACL something different. An IP address is not an
error and this choice of rule will prevent logging of *all* traffic from
that IP. "loadbalancer" would be clearer name.


I have not tested this, but you may want to add this extra condition so
when the LB sends actual HTTP it will appear in the logs:

  acl hasRequest has request
  acl dontLog all-of !hasRequest noTransactionError
  access_Log none dontLog


Amos


More information about the squid-users mailing list