How to log full URL in Squid3 ubuntu?

Youssef Hanna picture Youssef Hanna · Mar 31, 2012 · Viewed 11.5k times · Source

I'm installed Squid3 proxy into ubuntu server and everything is OK but when i check the log file, Squid logs url but if the url has a (?) his logging only what before ? mark and skip what after it.

Exp, if i tried to access this url : http://www.youtube.com/results?search_query=bmw

squid will log it as : http://www.youtube.com/results?

My ask here how can i configure squid3 to logging the full url ?

Thanks, Youssef

Answer

Diego Woitasen picture Diego Woitasen · Mar 31, 2012

Add this line to your squid.conf:

strip_query_terms off

More information here: strip_query_terms