Re: [squid-users] reducing access.log to !200 messages

From: Chris Robertson <crobertson_at_gci.net>
Date: Fri, 06 Feb 2009 15:46:03 -0900

Woodward, Andrew wrote:
> Hi group,
>
> I'd like to reduce the amount of information being set to access.log so
> that only requests that's come back !200 are logged. I figure that I can
> use:
>
> acl HTTPnot200 http_status !200
> access_log /usr/local/squid/var/logs/access.log squid HTTPnot200
> access_log none
>
> However, in the log_access directive description it notes " Requests
> denied for logging will also not be accounted for in performance
> counters."
>
> Would this be the case in this configuration?

I can't answer that one without testing it.

> If this will impact the
> counters then is there another method to prevent this impact but still
> reduce the items logged?
>

access_log /usr/local/squid/var/logs/access.log squid HTTPnot200
access_log /dev/null squid

> Andrew Woodward
>

Chris
Received on Sat Feb 07 2009 - 00:42:28 MST

This archive was generated by hypermail 2.2.0 : Sat Feb 07 2009 - 12:00:01 MST