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.