On Mon, 2013-06-24 at 15:28 -0700, Matthew Ceroni wrote:
> I am trying to prevent certain requests from being logged to the access log.
>
> Have the following configuration snippet:
>
> acl NoLogSites url_regex -i "/etc/squid/nolog.txt"
> log_access deny NoLogSites
>
> Within /etc/squid/nolog.txt:
>
> .jira.com
> .concursolutions.com
> .typesafe.com
> .maven.org
> .surveymonkey.com
> .salesforce.com
> .webex.com
>
> However, when I have this it ends up logging nothing. I even tried
> escaping the . by using \. but same thing. With this directive in
> nothing gets logged to access.log. Remove it and everything gets
> logged.
>
> Running on CentOS 6.4 with squid 3.1.10
Rather than use log_access, which i never got working either, you might
try:
access_log <module>:<place> <logformat name> !NoLogSites
i run the below:
access_log syslog:local4.info custom !AuthRequest !DeniedSites !svc_chk
Received on Mon Jun 24 2013 - 22:40:47 MDT
This archive was generated by hypermail 2.2.0 : Tue Jun 25 2013 - 12:00:06 MDT