Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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)