awstats analyze IIS log

1. IIS log files default path : C:/Windows/System32/LogFiles

 

2. Install awstats to C:/awstats-6.9

 

3. Analyze IIS log files

 

3.1 locate to 'C:/awstats-6.9/wwwroot/cgi-bin'

3.2 Copy parse 'awstats.model.conf ' to 'awstats.mysite .conf '

3.3 update awstats.mysite .conf - configuration file

3.3.1 define logfile path

#LogFile="C:/WINDOWS/system32/Logfiles/W3SVC1/ex%YY-0%MM-0%DD-0.log" (today)
LogFile="C:/awstats-6.9/tools/logresolvemerge.pl C:/awstats-6.9/wwwroot/cgi-bin/Mylog/*.log |"


3.3.2 define logfile content format

#LogFormat="date time c-ip cs-username s-ip s-port cs-method cs-uri-stem cs-uri-query sc-status sc-win32-status sc-bytes time-taken cs(User-Agent)"
LogFormat="date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status sc-bytes"


3.4 update AwstatsUpate.bat

c:
cd C:/AWStats/wwwroot/cgi-bin
awstats.pl -config=mysite -update -output -staticlinks > awstats.mysite.html
pause

 

- if remove ' -output -staticlinks > awstats.mysite.html' will not generate static html file

- if remove 'pause' will not stop


3.5 Run AwstatsUpate.bat, have you seen awstats.mysite.html page +awstats062010.mysite.txt ?

-'awstats062010.mysite.txt ' will record the 'LastLine',' Lasttime' etc. Awstats analyze last time, so if you want to analyze another log files which has same date , then can remove it.


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值