Squid access_log files time stamp

Taking care of your Linux box.
Post Reply
mashkoor.qadir
Lance Naik
Posts: 32
Joined: Mon Dec 20, 2010 10:27 pm
Location: Karachi
Contact:

Squid access_log files time stamp

Post by mashkoor.qadir »

Dear Members,


I am trying to change the time format for squid access_log file it removes the url. The log format options are as below

logformat squid +%tl %6tr %>a %Ss/%03>Hs

and its out put is as below
1# tail -f /var/log/squid/access.log
20/Feb/2014:23:50:44 +0500 309 192.168.12.178 TCP_MISS/200
20/Feb/2014:23:50:50 +0500 681 192.168.12.157 TCP_MISS/200
20/Feb/2014:23:50:53 +0500 18591 192.168.12.187 TCP_MISS/200
20/Feb/2014:23:50:53 +0500 18844 192.168.12.147 TCP_MISS/302
20/Feb/2014:23:50:53 +0500 409 192.168.12.108 TCP_MISS/200
20/Feb/2014:23:50:53 +0500 339313 192.168.12.100 TCP_MISS/ -
20/Feb/2014:23:50:58 +0500 720 192.168.12.13 TCP_MISS/200
20/Feb/2014:23:50:58 +0500 308 192.168.12.121 TCP_REFRESH_UNMODIFIED/304
20/Feb/2014:23:50:59 +0500 601 192.168.12.132 TCP_REFRESH_UNMODIFIED/304
20/Feb/2014:23:50:59 +0500 928 192.168.12.124 TCP_MISS/200
20/Feb/2014:23:50:59 +0500 360 192.168.12.117 TCP_MISS/200
20/Feb/2014:23:50:59 +0500 334 192.168.12.17 TCP_MISS/200
20/Feb/2014:23:51:02 +0500 946 192.168.12.10 TCP_MISS/200

how to resolve it.
Thanks in advance.
Kind Regards,
Mashkoor Qadir,
mashkoor.qadir@yahoo.com
http://www.redmath.com
Post Reply