Apache/iis Log Analysis Tool Awstats Introduction

Source: Internet
Author: User
Tags geoip iis unpack maxmind

You don't have to be patient to read everything: Brief installation instructions are as follows

Installation

http://sourceforge.net/projects/awstats/after downloading the installation package:

Gnu/linux:tar ZXF awstats-version.tgz

The default awstats scripts and static files are in the Wwwroot directory: The files under the Cgi-bin directory are deployed to the cgi-bin/directory:/home/apache/cgi-bin/awstats/

MV Awstats-version/wwwroot/cgi-bin/path/to/apache/cgi-bin/awstats

Copy the icon and other file directories to the Web's HTML file publishing directory, for example:/home/apache/htdocs/Publishing

More batch update scripts can be placed in the cgi-bin/awstats/directory under the Tools directory.

Upgrade domestic key search engines and spider definitions, install GEOIP application Library: C

http://www.maxmind.com/download/geoip/api/c/unpack, compile and install

Perl-mcpan-e ' Install ' geo::ip ' or using a pure Perl package perl-mcpan-e ' Install ' Geo::ip::P ureperl '

Download Geoip/geoipcitylite Package: Unpack and deploy to Awstats directory

Http://www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz

Http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz

Configuration

Name the default awstats.model.conf as Common.conf

Modify some of these configuration options:

LoadPlugin="decodeutfkeys"
LoadPlugin="geoip GEOIP_STANDARD /home/apache/chedong.com/cgi-bin/awstats/GeoIP.dat"
LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /home/apache/chedong.com/cgi-bin/awstats/GeoLiteCity.dat"

Create Awstats under Create: Data directory for statistical output

Follow the sample Setup profile:

Include "common.conf"
LogFile="/home/apache/logs/access_log.%YYYY-24%MM-24%DD-24"
SiteDomain="www.chedong.com"
HostAliases="chedong.com"
DefaultFile="index.html"
DirData="/home/apache/cgi-bin/awstats/database/"

Content Summary: Awstats's use introduction and configuration some improvement instructions. It's nice to see the start of the Awstats 6.3: Chinese users have basically just to have the loadplugin= "Decodeutfkeys" enabled in the configuration file basically there is no Chinese search engine statistics problem, now increased # Minor Chinese Search Engines ' baidu.com ', ' search.sina.com ', ' search.sohu.com ', these 3 search engines. Contains the main search engines and spiders defined by the domestic patch (after the lib\ directory to cover the original program directory can be)

The log statistics system plays an important role in the user behavior analysis of the site, especially for the keyword access statistics from search engines: it is a very effective source of user behavior analysis data. With the development of Internet for many years, the tool of Web log statistics is more and more mature, and the function is more and more rich. Many of them are open source, Awstats is a very good one.

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.