Re: [squid-users] Access Report

From: squid <[email protected]>
Date: Tue, 30 May 2006 09:49:26 +0530

nonama wrote:
> Dear All,
> I have a question on the access log. How do I change
> the date value in the access log so that it can be
> readable?
> Is there any tool that I can use to generate report on
> user access (where, when & what time) and also top 10
> popular web visited.
>
> YOur help is highly appreciated.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
Hello,

The time format in the squid access log is in Time stamp (seconds since
Jan 1, 1970) with millisecond resolution.you can see the time in human
readable format by a simple perl script like

#!/usr/bin/perl
#Give the time stamp here to see in human readable format
$timeinmsec="1146034225.069";
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
localtime($timeinmsec);
print $sec," ",$min," ",$hour," ",$mday," ",$mon," ",$year," ",$wday,"
",$yday," ",$isdst;

There are many tools for squid Log analysis.You can get those tools
from http://www.squid-cache.org/Scripts/

Thanks,
 Visolve Squid Team,
http://squid.visolve.com
Received on Mon May 29 2006 - 22:15:42 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jun 01 2006 - 12:00:02 MDT