Operating System - Linux
1753841 Members
9108 Online
108806 Solutions
New Discussion юеВ

Re: SQUID - no logginf for some users

 
SOLVED
Go to solution
Mauro Gatti
Valued Contributor

SQUID - no logginf for some users

It is possible disable logging for some users?

Thank You
Ubi maior, minor cessat!
3 REPLIES 3
Stuart Browne
Honored Contributor

Re: SQUID - no logginf for some users

Not that I'm aware of.

The directives for Squid do not have any conditional (or ACL based) logging abilities.

Why would you NOT want to log? I fail to see a decent reason fo this.

Maybe we can come up with something to better suit your needs, if we knew what they were.
One long-haired git at your service...
Mauro Gatti
Valued Contributor

Re: SQUID - no logginf for some users

some "special" user ask to protect their privacy without renounce to advantage of caching...
Do you know any possible way to do this?
Ubi maior, minor cessat!
benoit Bruckert
Honored Contributor
Solution

Re: SQUID - no logginf for some users

Hi,
I didn't see any directives in squid.conf file to not log in the access file some users.
What you can do is :
no logging for everybody !(file=/dev/null)
Or if you want to spend some times :
edit the source file :
src/access_log.c,
Make your change in the function :
accessLogCommon or the one you have define in conf file...
You can try an strcmp on the pointer "client" which seems to contains the ip address of the workstation, and disable the buffer write in case it's the ip address of your special user !

of course this solution is hard coded but should work ! May be a request to the squid dev team could be another solution ??
hth
Benoit
_________
"Une femme belle est le paradis des yeux, l'enfer de l'??me, et le purgatoire de la bourse."
Proverbe Estonien
Une application mal pans├йe aboutit ├а une usine ├а gaze (GHG)