Re: [squid-users] Statistics for custom errors/acls

From: John Horne <john.horne_at_plymouth.ac.uk>
Date: Fri, 24 Jul 2009 15:46:51 +0100

On Fri, 2009-07-24 at 12:29 +0100, John Horne wrote:
> Hello,
>
> If I create an ACL to deny access to specific sites, and add a custom
> error message:
>
> acl banned_urls url_regex -i "/etc/squid/..."
> http_access deny banned_urls
> deny_info ERR_LOCAL_BAN banned_urls
>
>
> Is there any way I can get some form of statistics about how often this
> specific ACL is hit? I have looked in the cachemanager, and the access
> log file, but I can see nothing which indicates this specific ACL is
> being hit.
>
It seems that by using 'debug_options ALL,1 33,2' in the config file,
causes the cache log to record whether a requested URL is allowed or not
and by which ACL. This is fine for us, as all we have to do now is grep
the log file for the relevant info.

John.

-- 
---------------------------------------------------------------
John Horne, University of Plymouth, UK  Tel: +44 (0)1752 587287
E-mail: John.Horne_at_plymouth.ac.uk       Fax: +44 (0)1752 587001
Received on Fri Jul 24 2009 - 14:47:01 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 24 2009 - 12:00:05 MDT