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.
Change squid3 access.log
loggingsquid
loggingsquid
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.
Best Answer
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.