Search squid archive

Re: squid4.12 access_log

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

 



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
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




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

  Powered by Linux