|
|
我apache2日志中时间戳总是变时区,而且是在运行过程中不断的变。我贴上来一段,大家帮忙看看:221.220.132.74 - - [01/Mar/2006:13:27:37 +0000] "GET /kjxx/gnxx/2006/3/1/57527.shtml HTTP/1.1" 200 16563 "http://www.mysite.com/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; zh-cn) Opera 8.50"
221.220.132.74 - - [01/Mar/2006:13:27:38 +0000] "GET /js/menu.js HTTP/1.1" 304 - "http://www.mysite.com/kjxx/gnxx/2006/3/1/57527.shtml" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; zh-cn) Opera 8.50"
221.220.132.74 - - [01/Mar/2006:13:27:39 +0000] "GET /images/m_menu0a.gif HTTP/1.1" 304 - "http://www.mysite.com/kjxx/gnxx/2006/3/1/57527.shtml" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; zh-cn) Opera 8.50"
221.220.132.74 - - [01/Mar/2006:13:27:39 +0000] "GET /images/m_menu1.gif HTTP/1.1" 304 - "http://www.mysite.com/kjxx/gnxx/2006/3/1/57527.shtml" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; zh-cn) Opera 8.50"
221.220.132.74 - - [01/Mar/2006:13:27:39 +0000] "GET /images/m_title1.gif HTTP/1.1" 304 - "http://www.mysite.com/kjxx/gnxx/2006/3/1/57527.shtml" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; zh-cn) Opera 8.50"
221.220.132.74 - - [01/Mar/2006:21:27:39 +0800] "GET /images/menu_00.gif HTTP/1.1" 304 - "http://www.mysite.com/kjxx/gnxx/2006/3/1/57527.shtml" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; zh-cn) Opera 8.50"
221.220.132.74 - - [01/Mar/2006:13:27:39 +0000] "GET /images/dot14.gif HTTP/1.1" 304 - "http://www.mysite.com/kjxx/gnxx/2006/3/1/57527.shtml" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; zh-cn) Opera 8.50"
221.220.132.74 - - [01/Mar/2006:21:27:39 +0800] "GET /images/dot15.gif HTTP/1.1" 304 - "http://www.mysite.com/kjxx/gnxx/2006/3/1/57527.shtml" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; zh-cn) Opera 8.50"
最近想用awstats做日志分析,但总是提示大部分日志记录损坏,才发现是时间戳造成的问题,awstats要求日志必须按时间顺序排序。
后来发现是apache chroot后造成的,在chroot环境建立/etc/timezone搞定。 |
|