Search squid archive

Re: log_access

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

 



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





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

  Powered by Linux