Miguel Asked: 2019-12-21 17:12:51 +0800 CST2019-12-21 17:12:51 +0800 CST 2019-12-21 17:12:51 +0800 CST How to add date and time to squid log? 772 The standard squid log format writes time in seconds from epoch. How to add date and time in a human readable format? linux 1 Answers Voted Best Answer Miguel 2019-12-21T17:17:43+08:002019-12-21T17:17:43+08:00 Add these to squid.config file: logformat timereadable %tl %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt access_log daemon:/var/log/squid/access.log timereadable then restart squid: systemctl restart squid //for debian Make sure the path were file is to be written exists.
Add these to squid.config file:
then restart squid:
Make sure the path were file is to be written exists.