Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

In squid, is it possible to enable access logging only on a specific ACL?

If so, how?

We have done quite a few searches and were unable to find the proper conf syntax :(

share|improve this question

2 Answers 2

up vote 2 down vote accepted
acl log_this src x.x.x.x. y.y.y.y.y z.z.z.z.z
access_log /var/log/squid common log_this
share|improve this answer

big trouble in little squid 3.4?

default points to accesses logging

access_log /var/log/squid/access.log

Below acls without log

access_log none my_acl

Does not work, all is logged on access.log I already try changing the order of this two lines (low to up and up to low) but does not work.

Have you any idea?

share|improve this answer
    
A way that I done was: access_log /var/log/squid/access.log !myacl –  EnioRM Oct 27 at 14:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.