|
AWStats: Apache/IIS的日志分析工具——在GNU/Linux和Windows平台上的使用简介(7) $string = encode($encoding, $string); }
# trim space $string =~ s/^\s+//; $string =~ s/\s+$//;
# reverse "+", ";" to space $string =~ s/;+//g; $string =~ s/\s+/\+/g; #print $string."\n"; return $string; }
这里有更多关于GOOGLE UTF-8查询的补丁。
基于地理信息的插件安装:
GeoIP 和 Geo::IPfree(awstats 5.5+) GeoIP和Geo::IPfree都免费的是国家/IP的影射表,比通过DNS反相解析域名得到的统计准确,而且速度快。GeoIP的API都是免费的,缺省库是免费的,收费的是它的数据更新服务。Geo::IPfree不仅代码是公开的,而且库数据也是公开的,因此可以自己定制,我曾经设想做一个中国城市到IP的映射。
GeoIP安装: 先下载C库:GeoIP C解包后 %./configure; make #make install
然后下载Perl库:GeoIP Perl解包后 %perl MakeFile.PL; make #make install
Geo::IPfree安装: 下载Geo::IPfree解包后 %perl Makefile %make #make install
配置:通过在配置文件中启用插件GeoIP或者Geo::IPfree
参考资料:
AWStats http://awstats.sourceforge.net/
Webalizer http://www.webalizer.org/
日志分析工具 http://directory.google.com/Top/Computers/Software/Internet/Site_Management/Log_Analysis/
商业日志统计/分析工具 http://directory.google.com/Top/Computers/Software/Internet/Site_Management/Log_Analysis/Commercial/
|