我已经开始使用Microsoft LogParser来分析IIS日志.
LogParser允许从文件中使用SQL查询,并直接在命令行中为查询提供参数,例如:
LogParser file:query.sql?date=2010-12-29 -i:IISW3C
date = 2010-12-29是提供给SQL查询的参数
select cs-uri-stem,count(*) from logs.log where date = <date> group by cs-uri-stem@H_403_16@