AWStats is a well-known Web/Mail/FTP server log file analysis tool on sourceforge.net.
Installation and configuration steps (applicable to IIS Log File Analysis)
1. Download AWStats,: http://sourceforge.net/projects/awstats/
2. Since AWStats is written by Pertl, You need to download the Perl interpreter: http://activestate.com/Products/ActivePerl/
3. Install the Perl interpreter ActivePerl
4. Install AWStats (this is assumed to be installed in C: \ Program Files). When a command prompt is displayed, enter none for the first time, and enter the domain name of your host for the second time.
5. Configure IIS logs
5.1 use the default W3C extended log file format as the active log format"
5.2 click "attributes", select "extended attributes", and select the following items:
Date
Time
C-ip
Cs-username
Cs-method
Cs-uri-stem
Cs-uri-query
SC-status
SC-bytes
Cs-version
Cs (User-Agent)
Cs (Referer)
Do not select others.
6. Create the virtual directory cgi-bin and map it to C: \ Program Files \ AWStats \ wwwroot \ cgi-bin.
Create a virtual directory ico and map it to C: \ Program Files \ AWStats \ wwwroot \ icon
7. Modify the corresponding configuration file AWStats in C: \ Program Files \ awstats \ wwwroot \ cgi-bin. myvirtualhostname. conf (myvirtualhostname is the domain name entered in step 4th for you, for example, www.cnblogs.com ). Modify the following items:
LogFile = "C: \ WINDOWS \ System32 \ LogFiles \ W3SVC1 \ ex % YY-0 % MM-0 % DD-0.log"
LogFormat = 2
AllowToUpdateStatsFromBrowser = 1
LoadPlugin = "timezone + 8"
8. Restart IIS and delete all log files under C: \ WINDOWS \ System32 \ LogFiles \ W3SVC1.
9. Make the configuration take effect:Awstats. pl-config = myvirtualhostname-update
10. After configuration is complete, access logs through WebHttp://www.myserver.mydomain/cgi-bin/awstats.pl? Config = myvirtualhostname, Click"Update Now ".
Page:
11. Automatic update through the task plan:
Create a batch file AwstatsUpate. bat with the following content:
C:
Cd C: \ Program Files \ AWStats \ wwwroot \ cgi-bin
Awstats. pl-config = www.cnblogs.com-update
Run the batch file During task scheduling.
For more detailed steps, see the Help file C: \ Program Files \ AWStats \ docs \ awstats_setup.html
References:
1. http://briandesmond.com/blog/archive/2003/09/08/176.aspx
2. http://files.cnblogs.com/dudu/InstallingAWStatsOnIIS6.rar (pdf file)
Related links: