[squid-users] filtering out cache.log messages in Squid 3.2

From: alex sharaz <alexsharaz_at_me.com>
Date: Wed, 04 Jan 2012 09:32:58 +0000

Hi,
I'm running a number of 3.2 caches behind a hardware load balancer
that performs health checks every 30 seconds by doing a "head http://<
non resolvable FQDN>/fred.txt" and expecting a 503 status code to be
returned from the server. If it gets this, real traffic is passed to
the cache based upon the distribution algorithm used.

The problem is of course that cache.log now has

2012/01/04 09:17:34 kid1| Failed to select source for 'http://dummyhost12345.hull.ac.uk/fred.txt'
2012/01/04 09:17:34 kid1| always_direct = 0
2012/01/04 09:17:34 kid1| never_direct = 0
2012/01/04 09:17:34 kid1| timedout = 0
2012/01/04 09:17:39 kid5| Failed to select source for 'http://dummyhost12345.hull.ac.uk/fred.txt'
2012/01/04 09:17:39 kid5| always_direct = 0
2012/01/04 09:17:39 kid5| never_direct = 0
2012/01/04 09:17:39 kid5| timedout = 0
2012/01/04 09:17:44 kid5| Failed to select source for 'http://dummyhost12345.hull.ac.uk/fred.txt'
2012/01/04 09:17:44 kid5| always_direct = 0
2012/01/04 09:17:44 kid5| never_direct = 0
2012/01/04 09:17:44 kid5| timedout = 0
2012/01/04 09:17:49 kid7| Failed to select source for 'http://dummyhost12345.hull.ac.uk/fred.txt'
2012/01/04 09:17:49 kid7| always_direct = 0
2012/01/04 09:17:49 kid7| never_direct = 0
2012/01/04 09:17:49 kid7| timedout = 0
2012/01/04 09:17:54 kid5| Failed to select source for 'http://dummyhost12345.hull.ac.uk/fred.txt'
2012/01/04 09:17:54 kid5| always_direct = 0
2012/01/04 09:17:54 kid5| never_direct = 0
2012/01/04 09:17:54 kid5| timedout = 0
2012/01/04 09:17:59 kid1| Failed to select source for 'http://dummyhost12345.hull.ac.uk/fred.txt'
2012/01/04 09:17:59 kid1| always_direct = 0
2012/01/04 09:17:59 kid1| never_direct = 0
2012/01/04 09:17:59 kid1| timedout = 0

messages every 5 seconds. Is there a way of filtering these out?
Of course I could just change the URL to be something real e.g http://bbc.co.uk/
  and do it that way,

Rgds
Alex
Received on Wed Jan 04 2012 - 09:34:59 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 04 2012 - 12:00:04 MST