[squid-users] squid logging disable based on ACL & kernel: Out of memory

Akshay Hegde akshay.k.hegde at gmail.com
Sat May 2 12:54:26 UTC 2020


Dear Alex,

Thank you so much, I will test on new squid,  on old 3.1 it didn't work as
you said.

-Akshay

On Sat, May 2, 2020, 1:00 AM Alex Rousskov <rousskov at measurement-factory.com>
wrote:

> On 5/1/20 12:43 PM, Akshay Hegde wrote:
>
> > I have below option globally, which I don't want to make "off"
> > strip_query_terms on
>
> > acl track dstdomain "/etc/squid/sites_track.txt"
> > access_log /var/log/squid/full_site_links.log squid_custom track
>
> > however for specific ACL I would like to log full URL with query
> > parameters, how this can be done ?
>
> I have not tested this, and the results may be version-dependent, but
> according to logformat documentation[1], %ru honors strip_query_terms
> while %>ru does not:
>
>     logformat strippedFormat %ts... %ru ...
>     access_log ... strippedFormat track !specific_ACL
>
>     logformat detailedFormat %ts... %>ru ...
>     access_log ... detailedFormat track specific_ACL
>
> [1] http://www.squid-cache.org/Doc/config/logformat/
>
>
> HTH,
>
> Alex.
>
> > On Fri, May 1, 2020 at 7:05 PM Alex Rousskov wrote:
> >
> >     On 5/1/20 1:20 AM, Akshay Hegde wrote:
> >
> >     > *1. How to disable logging of few ACLs ?
> >
> >     Use "access_log none aclX" to prevent creation of access.log records
> for
> >     transactions matching aclX. See
> >
> http://lists.squid-cache.org/pipermail/squid-users/2020-April/021876.html
> >     for
> >     some related caveats.
> >
> >
> >     > *2. Kernel Out of Memory
> >
> >     This problem is most likely unrelated to logging. If your Squid is
> >     gradually leaking memory (rather than just being overwhelmed with
> >     traffic), then the first step towards removing those memory leaks
> would
> >     be to upgrade your Squid from the unsupported and buggy v3.1.10.
> >
> >
> >     HTH,
> >
> >     Alex.
> >
> >
> >
> > --
> > <
> https://about.me/akshay.k.hegde?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=edit_panel&utm_content=thumb
> >
> >
> > Akshay Hegde
> > about.me/akshay.k.hegde
> > <
> https://about.me/akshay.k.hegde?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=edit_panel&utm_content=thumb
> >
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20200502/793eca36/attachment.html>


More information about the squid-users mailing list