Squid access_log files time stamp

Taking care of your Linux box.

Squid access_log files time stamp

Postby mashkoor.qadir » Thu Feb 20, 2014 7:04 pm

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.
mashkoor.qadir
Lance Naik
 
Posts: 32
Joined: Mon Dec 20, 2010 10:27 pm
Yahoo Messenger: mashkoor.qadir@yahoo.com
Location: Karachi

Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 2 guests

cron