cherrun Asked: 2012-02-14 09:43:26 +0800 CST2012-02-14 09:43:26 +0800 CST 2012-02-14 09:43:26 +0800 CST Change squid3 access.log 772 Where lies the config file to change the output of the access.log file? I want to remove the website the user was browsing and format the time so it's human readable. logging squid 1 Answers Voted Best Answer James O'Gorman 2012-02-14T12:43:08+08:002012-02-14T12:43:08+08:00 You can define a custom log format in squid.conf with the logformat directive. This can then be used in the access_log directive: logformat nourl %tl %6tr %>a %Ss/%03>Hs %<st %[un %Sh/%<a %mt access_log daemon:/usr/local/squid/var/logs/access.log nourl will output a log file similar to the squid default, with time in local time and HTTP method and URL removed.
You can define a custom log format in squid.conf with the
logformat
directive. This can then be used in theaccess_log
directive:will output a log file similar to the squid default, with time in local time and HTTP method and URL removed.