Search squid archive

Re: Access Report

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux