awstats

Awstats是一个免费非常简洁而且强大有个性的统计工具。它可以统计您站点的如下信息:
  一:访问量,访问次数,页面浏览量,点击数,数据流量等
  二:精确到每月、每日、每小时的数据
  三:访问者国家
  四:访问者IP
  五:Robots/Spiders的统计
  六:纺客持续时间
  七:对不同Files type 的统计信息
  八:Pages-URL的统计
  九:访客操作系统浏览器等信息
  十:其它信息(搜索关键字等等)
   AWStats 是一个免费的强大而有个性的工具,带来先进的网络,流量,FTP或邮件服务器统计图. 本日志分析器作为CGI或从命令行在数个图形网页中显示你日志中包含的所有可能信息. 它利用一部分档案资料就能经常很快地处理大量日志档案, 它能分析日志文件来自从各大服务器工具 ,如 Apache日志档案 s (NCSA combined/XLF/ELF log format or common/CLF log format), WebStar, IIS (W3C的日志格式)及许多其他网站,Proxy(代理服务器)、Wap、流量服务器、邮件服务器和一些 FTP服务器 .
  看一看这个比较表在最著名统计工具 (AWStats, Analog, Webalizer,...)之间有何特点和不同的想法.
  AWStats 是一个在GNU通用公共许可证下发行的免费软件. 你可以看看这个许可证图表而知道你可以/不可以做.
  由于AWStats工程来自网上信息,但也作为CGI、它可以与允许进入Perl,CGI与日志的大型网站主办提供商一起工作.

 

awstats - 安装配置


 

1、下载
AWStats http://sourceforge.net/projects/awstats/
Perl下载 http://www.perl.com/pub/language/info/software.html

AWStats的运行模式是这样的:
分析日志:运行后将这样的日志统计结果归档到一个AWStats的数据库(纯文本)里;
然后是输出:分两种形式
一种是通过cgi程序读取统计结果数据库输出;
一种是运行后台脚本将输出导出成静态文件;

2、安装Perl:
cd /server/software/
tar xvfz perl_5.8.7_stable.tar.gz
cd perl-5.8.7
(rm -f config.sh Policy.sh)
sh Configure -de
make
make test
make install
 
3、安装AWStats:
cd /server/software/
tar xvfz awstats-6.4.tgz

mv awstats-6.4 /server/www/ganji/
cd /server/www/ganji/
chown -R apache:www awstats-6.4
cd /server/www/ganji/awstats-6.4/tools/
perl awstats_configure.pl

Do you want to continue setup from this NON standard directory [yN] ?
y

Enter full config file path of your Web server.
Example: /etc/httpd/httpd.conf
Example: /usr/local/apache2/conf/httpd.conf
Example: c:\Program files\apache group\apache\conf\httpd.conf
Config file path ('none' to skip web server setup):
> /server/soft/apache/conf/httpd.conf

Do you want me to build a new AWStats config/profile
file (required if first install) [y/N] ?
y

What is the name of your web site or profile analysis ?
Example: www.mysite.com
Example: demo
Your web site, virtual server or profile name:
> www.ganji.com

In which directory do you plan to store your config file(s) ?
Default: /etc/awstats
Directory path to store config file(s) (Enter for default):
> /etc/awstats

出现下面这两段成功
-----> Add update process inside a scheduler
Sorry, configure.pl does not support automatic add to cron yet.
You can do it manually by adding the following command to your cron:
/server/awstats-6.4/wwwroot/cgi-bin/awstats.pl -update -config=www.ganji.com
Or if you have several config files and prefer having only one command:
/server/awstats-6.4/tools/awstats_updateall.pl now
Press ENTER to continue...

A SIMPLE config file has been created: /etc/awstats/awstats.www.ganji.com.conf
You should have a look inside to check and change manually main parameters.
You can then manually update your statistics for 'www.ganji.com' with command:
> perl awstats.pl -update -config=www.ganji.com
You can also read your statistics for 'www.ganji.com' with URL:
> http://localhost/awstats/awstats.pl?config=www.ganji.com

Press ENTER to finish...


 

awstats - 参考资料

1.http://www.awstats.cn
2.http://awstats.sourceforge.net
3.http://en.wikipedia.org/wiki/AWStats
4.http://bbs.netpu.net/viewthread.php?tid=694

5.http://www.chedong.com/tech/awstats.html

6.http://www.chedong.com/tech/rotate_merge_log.html

7.http://awstats.sourceforge.net/docs/awstats_faq.html