Apache/IIS的日誌分析工具AWStats簡介

來源:互聯網
上載者:User

你完全不必耐心看完所有內容:簡要安裝說明如下

安裝

http://sourceforge.net/projects/awstats/ 下載安裝包後:

GNU/Linux:tar zxf awstats-version.tgz

awstats的指令碼和靜態檔案預設都在wwwroot目錄下:將cgi-bin目錄下的檔案都部署到 cgi-bin/目錄下:/home/apache/cgi-bin/awstats/

mv awstats-version/wwwroot/cgi-bin /path/to/apache/cgi-bin/awstats

把表徵圖等檔案目錄複寫到WEB的HTML檔案發布目錄下,例如:/home/apache/htdocs/ 下發布

更多的批次更新指令碼等在tools 目錄下,可以一併放到cgi-bin/awstats/ 目錄下

升級國內主要搜尋引擎和蜘蛛定義,安裝GeoIP的應用庫:C

http://www.maxmind.com/download/geoip/api/c/ 解包,編譯安裝

perl -MCPAN -e 'install "Geo::IP"' 或者使用純Perl包 perl -MCPAN -e 'install "Geo::IP::PurePerl"'

下載GeoIP/GeoIPCityLite包:解包並部署到awstats目錄下

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

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

配置

將預設awstats.model.conf 命名成common.conf

修改其中的一些配置選項:

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"

建立awstats下建立:data 目錄用於統計資料輸出

按照一下範例設定設定檔:

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/"

內容摘要:AWStats的使用簡介和配置一些改進說明。很高興看到在AWStats 6.3版本開始:中文使用者基本上已經只需要將設定檔中將 LoadPlugin="decodeutfkeys" 啟用基本上就沒有什麼中文搜尋引擎的統計問題了,目前增加了# Minor chinese search engines 'baidu.com','search.sina.com','search.sohu.com',這3個搜尋引擎。包含了針對國內主要搜尋引擎和蜘蛛定義的補丁(解包後覆蓋lib\目錄下的原程式目錄即可)

日誌統計系統在網站的使用者行為分析中扮演了重要的角色,尤其是對於來自搜尋引擎的關鍵詞 訪問統計:是很有效使用者行為分析資料來源。隨著互連網多年的發展,WEB日誌統計工具已經越來越成熟,功能也越來越豐富。其中有很多是開放原始碼的, AWStats就是其中非常優秀的一款。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.