关于apache日志的一个问题

2010年4月23日 由 月影鹏鹏 留言 »

cat `date  +%Y-%m-%d`.access_log |awk ‘{if($1==”-”) {print $0}}’
显示:-  – - [22/Apr/2010:01:51:42 -0700] “OPTIONS * HTTP/1.0″ 200 – “-” “Apache (internal dummy connection)”
-  – - [22/Apr/2010:01:51:47 -0700] “OPTIONS * HTTP/1.0″ 200 – “-” “Apache (internal dummy connection)”
-  – - [22/Apr/2010:01:52:13 -0700] “OPTIONS * HTTP/1.0″ 200 – “-” “Apache (internal dummy connection)”
-  – - [22/Apr/2010:01:52:17 -0700] “OPTIONS * HTTP/1.0″ 200 – “-” “Apache (internal dummy connection)”

有朋友问我这样的访问日志是怎么回事?

鹏鹏工作室问答:

你用的apache2.2 吧,鹏鹏工作室也在维护服务器的过程中也遇到过这个情况,这个是apache2.2 自身判断子进程是否存活,留下的日志, prefork模式就会造成这样.  你在做日志分析时把这种记录过滤掉就好了。

广告位

留言