当前位置:早雪网网络学院编程文档软件工程 → Apache 日志 分析/研究

Apache 日志 分析/研究

减小字体 增大字体 作者:未知  来源:从互联网收集整理并转载  发布时间:2008-8-26 21:39:44


Apache 日志 分析/研究 by Emerald 绿色学院 - Green Institute
一、

站点访问日志

C:\Program Files\Apache Group\Apache2\logs\access.log 文件

01.
crawl-66-249-66-166.googlebot.com - - [15/Feb/2005:08:32:41 +0800] "GET /uploads/thumbs/1045.jpg HTTP/1.1" 403 286

上面的信息很明显了,是一个 Google bot.

不过这个日志文件记录了图片的访问信息,因为这个是我以前的LOG,
可以在Apache 中配置不记录对图片的请求写入日志文件中,
修改 CustomLog logs/access_log common 为下面的内容:
##############################################################
SetEnvIf Request_URI \.gif image-request
SetEnvIf Request_URI \.jpg image-request
SetEnvIf Request_URI \.png image-request
SetEnvIf Request_URI \.jpeg image-request

CustomLog logs/access_log common env=!image-request

# 避免对图片的请求出现在访问日志中
##############################################################


02.
shawl - E [15/Feb/2005:00:13:06 +0800] "GET /modules/istats/include/counter.php?sw=1024&sc=32&refer=&page=http://gi.2288.org:88/ HTTP/1.1" 200 -

计算机名为 Shawl ,登入服务器站点的用户名为 E ,接着是把用户信息写入一个统计程序
 
 


Tags:Apache,日志,分析,研究,by,Emerald,绿色,学院,Green,Institute
[数据载入中...] [返回上一页] [打 印]