LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 551|回复: 0

apache2日志条目时间戳问题(已搞定)

[复制链接]
发表于 2006-3-1 21:43:43 | 显示全部楼层 |阅读模式
我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搞定。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表