For reference, just because it took me a while to get the syntax right, plus https://bugs.squid-cache.org/show_bug.cgi?id=4905 made me scratch my head a bit wondering why it wasn't working when I used "squid" instead of another name:
logformat custom-squid %tg{%F %H:%M:%S %z} %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt access_log daemon:/var/log/squid/access.log custom-squid
Will yield: 2020-04-22 13:27:14 +0000 18 127.0.0.1 TCP_REFRESH_UNMODIFIED/200 265270 GET http://br.archive.ubuntu.com/ubuntu/dists/focal/InRelease - FIRSTUP_PARENT/10.10.1.6 -
For reference, just because it took me a while to get the syntax right, plus https:/ /bugs.squid- cache.org/ show_bug. cgi?id= 4905 made me scratch my head a bit wondering why it wasn't working when I used "squid" instead of another name:
logformat custom-squid %tg{%F %H:%M:%S %z} %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt /var/log/ squid/access. log custom-squid
access_log daemon:
Will yield: UNMODIFIED/ 200 265270 GET http:// br.archive. ubuntu. com/ubuntu/ dists/focal/ InRelease - FIRSTUP_ PARENT/ 10.10.1. 6 -
2020-04-22 13:27:14 +0000 18 127.0.0.1 TCP_REFRESH_