免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3151 | 回复: 16
打印 上一主题 下一主题

AWStats: 跨平台的日志分析工具 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-10-08 21:44 |只看该作者 |倒序浏览
以下说明在FreeBSD上可以快速安装完成,其他系统请自己看别的说明文章。
实例:
http://chiwawa.plala.jp/cgi-bin/awstats.pl

特点:
1, 界面友好:可以根据浏览器直接调用相应语言界面(有简体中文版)
参考输出样例:http://awstats.sourceforge.net/cgi-bin/awstats.pl

2, 基于Perl:并且很好的解决了跨平台问题,系统本身可以运行在GNU/Linux上或Windows上(安装了ActivePerl后);分析的日志直接支持Apache格式 (combined)和IIS格式(需要修改)。Webalizer虽然也有Windows平台版,但目前已经缺乏维护;AWStats完全可以实现用一套系统完成对自身站点不同服务器:GNU/Linux/Apache和Windows/IIS服务器的统一统计。

3, 效率比较高:AWStats输出统计项目比Webalizer丰富了很多,速度仍可以达到Webalizer的1/3左右,对于一个日访问量百万级的站点,这个速度都是足够的;

4, 配置/定制方便:系统提供了足够灵活但缺省也很合理的配置规则,需要修改的缺省配置不超过3,4项就可以开始运行,而且修改和扩展的插件还是比较多的;

5, AWStats的设计者是面向精确的"Human visits"设计的,因此很多搜索引擎的机器人访问都被过滤掉了,因此有可能比其他日志统计工具统计的数字要低,来自公司内部的访问也可以通过IP过滤设置过滤掉。

6, 提供了很多扩展的参数统计功能:使用ExtraXXXX系列配置生成针对具体应用的参数分析会对产品分析非常有用。

AWStats安装
# cd /usr/ports/www/awstats/
# su -
# make
# make install

配置文件
# cd /usr/local/www/cgi-bin
# mv awstats.sitename.conf awstats.conf
# vi awstats.conf

至少修改3个地方
# Example: "gzip -d </var/log/apache/access.log.gz |"
#
LogFile="/var/log/httpd-access.log"

# Example: "myintranetserver"
#
SiteDomain="chiwawa.plala.jp"

# Default: "/icon" (means you must copy icon directories in "/mywwwroot/icon"
#
DirIcons="../icons"   #如果你的其他东西都是缺省安装话,否则自己研究一下。

日志分析
./awstats.pl -update -config=sitename
比如:./awstats.pl -update -config=chiwawa.plala.jp
log比较大的话你就要耐心等一会儿

日志统计自动运行
# vi /etc/crontab
添加
# #update awstats
10 8 * * * (cd /usr/local/www/cgi-bin/awstats/; ./awstats.pl -update -config=chiwawa.plala.jp)
这样每天早上8点10分自动更新


详细说明google上面很多,比如:
http://www.chedong.com/tech/awstats.html

论坛徽章:
0
2 [报告]
发表于 2003-10-08 22:03 |只看该作者

AWStats: 跨平台的日志分析工具

非常不错的东西。

http://xiaohua.dns0755.net/cgi-bin/awstats.pl

22:06 [root] [ /usr/local/www/cgi-bin ] ./awstats.pl -update -config=bsdroot.dns0755.net
Update for config "./awstats.conf"
With data in log file "/var/log/httpd-access.log"...
Phase 1 : First bypass old records, searching new record...
Direct access after last updated record successfull (after line 2495
Jumped lines in file: 24958
Found 24958 old records.
Parsed lines in file: 0
Found 0 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 0 new qualifed records.

论坛徽章:
0
3 [报告]
发表于 2003-10-08 22:22 |只看该作者

AWStats: 跨平台的日志分析工具

thank you,very good

论坛徽章:
0
4 [报告]
发表于 2003-10-08 23:19 |只看该作者

AWStats: 跨平台的日志分析工具

好东西!
有空一定腰做个实验

论坛徽章:
0
5 [报告]
发表于 2003-10-09 01:12 |只看该作者

AWStats: 跨平台的日志分析工具

xiaohua
你的icons路径还要设定一下。
我补充了原文了。

论坛徽章:
0
6 [报告]
发表于 2003-10-09 08:04 |只看该作者

AWStats: 跨平台的日志分析工具

谢谢!已经修改为完整路径了。但有些图片还是显示不出来???

论坛徽章:
0
7 [报告]
发表于 2003-10-09 08:17 |只看该作者

AWStats: 跨平台的日志分析工具

呵呵,已经好了。谢谢提醒。写法是:

DirIcons="/icons"  在 apache2 下通过

论坛徽章:
0
8 [报告]
发表于 2003-10-09 09:31 |只看该作者

AWStats: 跨平台的日志分析工具

Update for config "./awstats.conf"
With data in log file "/var/log/http-access.log"...
Phase 1 : First bypass old records, searching new record...
Lines in file: 35
Found 17 dropped records,
Found 1 corrupted records,
Found 17 old records,
Found 0 new qualifed records.
可访问的时候显示的是
#!/usr/bin/perl
#-----------------------------------------------------------------------------
# Free realtime web server logfile analyzer to show advanced web statistics.
# Works from command line or as a CGI. You must use this script as often as
# necessary from your scheduler to update your statistics.
# See AWStats documenation (in docs/ directory) for all setup instructions.
#-----------------------------------------------------------------------------
………………
请问这是什么原因呀:(

论坛徽章:
0
9 [报告]
发表于 2003-10-09 11:07 |只看该作者

AWStats: 跨平台的日志分析工具

up

论坛徽章:
0
10 [报告]
发表于 2003-10-09 13:17 |只看该作者

AWStats: 跨平台的日志分析工具

现在可以显示了可是只可以用IP用域名显示不了:(
请问是在那里设置呀
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP