Discussion:
[squid-users] access_log none acl
smaku
2015-04-23 17:25:47 UTC
Permalink
Hi all,

I dont want to log my traffic to squid in access_log.
That's why I add two lines to default config.
but when I vi or tail access.log I can see my requests:

1429810062.286 142 10.31.6.5 TCP_MISS/302 807 GET http://www.google.pl/ -
HIER_DIRECT/173.194.32.207 text/html


squid.conf:
################################################################

acl myacl1 src 10.31.6.5/32
access_log none myacl1

#LOG - same as default
access_log daemon:/var/squid/logs/access.log squid
cache_log /var/squid/logs/cache.log
#ACL list
acl office src 10.31.6.0/24
#allow http
http_access allow office
http_access deny all

################################################################


any idea?
squid version 3.4.6



--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/access-log-none-acl-tp4670886.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Yuri Voinov
2015-04-23 18:10:33 UTC
Permalink
http://www.squid-cache.org/Doc/config/access_log/
Post by smaku
Hi all,
I dont want to log my traffic to squid in access_log.
That's why I add two lines to default config.
1429810062.286 142 10.31.6.5 TCP_MISS/302 807 GET
http://www.google.pl/ -
Post by smaku
HIER_DIRECT/173.194.32.207 text/html
################################################################
acl myacl1 src 10.31.6.5/32
access_log none myacl1
#LOG - same as default
access_log daemon:/var/squid/logs/access.log squid
cache_log /var/squid/logs/cache.log
#ACL list
acl office src 10.31.6.0/24
#allow http
http_access allow office
http_access deny all
################################################################
any idea?
squid version 3.4.6
--
http://squid-web-proxy-cache.1019090.n4.nabble.com/access-log-none-acl-tp4670886.html
Post by smaku
Sent from the Squid - Users mailing list archive at Nabble.com.
_______________________________________________
squid-users mailing list
http://lists.squid-cache.org/listinfo/squid-users
Amos Jeffries
2015-04-24 02:03:40 UTC
Permalink
Post by Yuri Voinov
http://www.squid-cache.org/Doc/config/access_log/
Post by smaku
Hi all,
I dont want to log my traffic to squid in access_log.
That's why I add two lines to default config.
1429810062.286 142 10.31.6.5 TCP_MISS/302 807 GET
http://www.google.pl/ -
Post by smaku
HIER_DIRECT/173.194.32.207 text/html
################################################################
acl myacl1 src 10.31.6.5/32
access_log none myacl1
#LOG - same as default
access_log daemon:/var/squid/logs/access.log squid
cache_log /var/squid/logs/cache.log
#ACL list
acl office src 10.31.6.0/24
#allow http
http_access allow office
http_access deny all
################################################################
any idea?
squid version 3.4.6
Thank you, I found a bug in the "none" handling.

As a workaround while this gets fixed you can use this config which is
equivalent to the non-working one:

access_log daemon:/var/squid/logs/access.log squid !myacl1

Amos
smaku
2015-04-24 07:42:16 UTC
Permalink
Thank you Amos.

access_log daemon:/var/squid/logs/access.log squid !myacl1

working perfect.



--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/access-log-none-acl-tp4670886p4670905.html
Sent from the Squid - Users mailing list archive at Nabble.com.

Continue reading on narkive:
Loading...