On Tue, 31 Oct 2000, Yavuz Maslak wrote:
> I use Squid2 proxy server on FreeBSD3.2
>
> and I want to see its cache logs
>
> in squid.conf as following :
>
> cache_access_log /var/log/squid/access.log
> cache_log /var/log/squid/cache.log
>
> But I have a problem. For example my pc ip is 10.1.1.1/24 and I use squid
> server to reache internet.
>
> I see my ip address and where I navigate in cache_access_log but I don't see
> following as;
>
> 1 - When did I enter to internet ? (Year,month,day,hour,minute etc.)
>
> Where shall I look ?
The first field of the access log is the time that the request
completed.
6.6.3. access.log native format in detail
It is recommended though to use Squid's native log format due to its
greater amount of information made available for later analysis. The
print format line for native access.log entries looks like this:
"%9d.%03d %6d %s %s/%03d %d %s %s %s %s%s/%s %s"
Therefore, an access.log entry usually consists of (at least) 10
columns separated by one ore more spaces:
time
A Unix timestamp as UTC seconds with a millisecond resolution.
You can convert Unix timestamps into something more human
readable using this short perl script:
#! /usr/bin/perl -p
s/^\d+\.\d+/localtime $&/e;
-- To unsubscribe, see http://www.squid-cache.org/mailing-lists.htmlReceived on Tue Oct 31 2000 - 11:18:59 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:56:04 MST