Log File Analysis Tool-steps for configuring AWStats in IIS

Source: Internet
Author: User
Tags perl interpreter

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.