Chinaunix首页 | 论坛 | 博客
  • 博客访问: 335549
  • 博文数量: 64
  • 博客积分: 2301
  • 博客等级: 大尉
  • 技术积分: 570
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-25 11:48
文章分类

全部博文(64)

文章存档

2013年(5)

2012年(6)

2011年(36)

2010年(7)

2009年(10)

分类: LINUX

2011-05-25 16:40:03

一.awstats的介绍
Awstats是一个免费非常简洁而且强大有个性的统计工具。它可以统计您站点的如下信息:  
一:访问量,访问次数,页面浏览量,点击数,数据流量等   
二:精确到每月、每日、每小时的数据   
三:访问者国家   
四:访问者IP   
五:Robots/Spiders的统计   
六:纺客持续时间   
七:对不同Files type 的统计信息   
八:Pages-URL的统计   
九:访客操作系统浏览器等信息   
十:其它信息(搜索关键字等等)
编辑本段详细介绍
  AWStats是在Sourceforge上发展很快的一个基于Perl的WEB日志分析工具。相对于另外一个非常优秀的开放源代码的日志分析工具Webalizer,AWStats的优势在于:   1.界面友好:可以根据浏览器直接调用相应语言界面(有简体中文版)   2.基于Perl:并且很好的解决了跨平台问题,系统本身可以运行在GNU/Linux上或Windows上(安装了ActivePerl后);分析的日志直接支持Apache格式 (combined)和IIS格式(需要修改)。Webalizer虽然也有Windows平台版,但目前已经缺乏 维护;AWStats完全可以实现用一套系统完成对自身站点不同WEB服务器:GNU/Linux/Apache和Windows/IIS服务器的统一统计。   3.效率比较高:AWStats输出统计项目比Webalizer丰富了很多,速度仍可以达到Webalizer的1/3左右,对于一个日访问量 百万级的站点,这个速度都是足够的;   4.配置/定制方便:系统提供了足够灵活但缺省也很合理的配置规则,需要修改的缺省配置不超过3,4项就可以开始运行,而且修改和扩展的插件还是 比较多的;   5.AWStats的设计者是面向精确的"Human visits"设计的,因此很多搜索引擎的机器人访问都被过滤掉了,因此有可能比其他日志统计工具统计的数字要低,来自公司内部的访问也可以通过IP过滤 设置过滤掉。   6.提供了很多扩展的参数统计功能:使用ExtraXXXX系列配置生成针对具体应用的参数分析会对产品分析非常有用。   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的安装配置
#  cd /usr/local
local # mkdir awstats
local # cd awstats
awstats # wget
awstats # tar -zxvf awstats-6.7.tar.gz
awstats # cd awstats-6.7/tools
tools # perl awstats_configure.pl
[You will be prompted the following]: (I choose y)
-----> Running OS detected: Linux, BSD or Unix
Warning: AWStats standard directory on Linux OS is '/usr/local/awstats'.
If you want to use standard directory, you should first move all content
of AWStats distribution from current directory:
/usr/local/awstats/awstats-6.7
to standard directory:
/usr/local/awstats
And then, run configure.pl from this location.
Do you want to continue setup from this NON standard directory [yN] ? y    
-----> Need to create a new config file ?
Do you want me to build a new AWStats config/profile
file (required if first install) [y/N] ?   y
Then name your profile, use default directory path /etc/awstats, I was then
prompted with the following:
-----> 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:
/usr/local/awstats/awstats-6.7/wwwroot/cgi-bin/awstats.pl -update -
config=My_Profile_Name
Or if you have several config files and prefer having only one command:
/usr/local/awstats/awstats-6.7/tools/awstats_updateall.pl now
Press ENTER to continue
A SIMPLE config file has been created:
/etc/awstats/awstats.My_Profile_Name.conf
You should have a look inside to check and change manually main parameters.
You can then manually update your statistics for 'My_Profile_Name' with
command:
> perl awstats.pl -update -config=My_Profile_Name
You can also read your statistics for 'My_Profile_Name' with URL:
>
Press ENTER to finish...
 wget -
2.dl.sourceforge.net/project/awstats/AWStats/7.0/awstats-7.0.zip
You can do it manually by adding the following command to your cron:
/root/soft/snort/awstats-7.0/wwwroot/cgi-bin/awstats.pl -update -
config=
Or if you have several config fichaiprefer having only one command:
/usr/local/awstats/awstats-7.0/tools/awstats_updateall.pl  -
awstatsprog=/usr/local/awstats/awstats-7.0/wwwroot/cgi-bin/awstats.pl now
 
test:
阅读(865) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~