Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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 '14 at 14:18

Your Answer


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.