- 论坛徽章:
- 0
|
关于squid需要注意的一些问题及不足
认同第一、二两个问题,对于第三个问题,我查了www.squid-cache.org的FAQ,发现不是用的格林威治标准时间(GMT),而是UTC时间(没搞清楚是什么含义, ,“Univer-sal Time Code-世界时间代码”?)。
原文引用如下:
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; |
|