1, 下载 LogParser? ,或见邮箱-资料
?
?2, 在期安装目录,进入dos,执行:
???? (文本显示)
???? cd C:\Program Files\IIS Resources\Log Parser 2.2
????? LogParser “SELECT c-ip as “访问IP”, COUNT(*) as 请求次数 INTO count.txt FROM a.log GROUP BY c-ip ORDER BY 请求次数 DESC ” -o:nat
?
? 或:
??? (窗体显示)
cd C:\Program Files\IIS Resources\Log Parser 2.2
LogParser “SELECT c-ip as “访问IP”, COUNT(*) as 请求次数 INTO DATAGRID FROM a.log GROUP BY c-ip ORDER BY 请求次数 DESC ” -o:datagrid
注:各个字段如c-ip见iis 网站属性中 活动日志格式属性中的帮助。