[squid-users] squid4.12 access_log
Amos Jeffries
squid3 at treenet.co.nz
Tue Jul 28 12:57:02 UTC 2020
On 28/07/20 7:38 pm, Thomas Elsäßer wrote:
> Dear all,
>
> thnks for the answer. I have tested following config:
>
> acl Loadbalancer src 10.12.56.46 10.12.56.48
> access_log none Loadbalancer
> acl hasRequest has request
> acl dontLog all-of !hasRequest Loadbalancer
> access_log none dontLog
> access_log /var/log/squid4/access.log combined !Loadbalancer
>
> I need no requests from this IP's in my log.
>
> But this not working.
>
> 10.12.56.48 - - [28/Jul/2020:09:36:44 +0200] "NONE
> error:transaction-end-before-headers NONE/0.0" 0 0 "-" "-" NONE:HIER_NONE
> 10.12.56.46 - - [28/Jul/2020:09:36:46 +0200] "NONE
> error:transaction-end-before-headers NONE/0.0" 0 0 "-" "-" NONE:HIER_NONE
>
> in my logfile.
>
Did you clean the log (eg squid -k rotate) after reconfigure with the
updated squid.conf?
Something is broken in squid.conf if the IP based ACL did not work:
acl Loadbalancer src 10.12.56.46 10.12.56.48
access_log none Loadbalancer
Amos
More information about the squid-users
mailing list