awstats以默认方式对日志统计分析的时候,有时无法满足我们业务的需求(对URL中某些参数进行统计分析)。所以需要对awstats扩展部分进行定义,从而使其满足我们的需要。
awstats.xxx.conf关于EXTRA SECTIONS的描述部分
#-----------------------------------------------------------------------------
# EXTRA SECTIONS
#-----------------------------------------------------------------------------
# You can define your own charts, you choose here what are rows and columns
# keys. This feature is particularly useful for marketing purpose, tracking
# products orders for example.
# For this, edit all parameters of Extra section. Each set of parameter is a
# different chart. For several charts, duplicate section changing the number.
# Note: Each Extra section reduces AWStats speed by 8%.
#
# WARNING: A wrong setup of Extra section might result in too large arrays
# that will consume all your memory, making AWStats unusable after several
# updates, so be sure to setup it correctly.
# In most cases, you don't need this feature.
#
# ExtraSectionNameX is title of your personalized chart.
# ExtraSectionCodeFilterX is list of codes the record code field must match.
# Put an empty string for no test on code.
# ExtraSectionConditionX are conditions you can use to count or not the hit,
# Use one of the field condition
# (URL,URLWITHQUERY,QUERY_STRING,REFERER,UA,HOST,extraX)
# and a regex to match, after a coma. Use "||" for "OR".
# ExtraSectionFirstColumnTitleX is the first column title of the chart.
# ExtraSectionFirstColumnValuesX is a string to tell AWStats which field to
# extract value from
# (URL,URLWITHQUERY,QUERY_STRING,REFERER,UA,HOST,VHOST,extraX)
# and how to extract the value (using regex syntax). Each different value
# found will appear in first column of report on a different row. Be sure
# that list of different possible values will not grow indefinitely.
# ExtraSectionFirstColumnFormatX is the string used to write value.
# ExtraSectionStatTypesX are things you want to count. You can use standard
# code letters (P for pages,H for hits,B for bandwidth,L for last access).
# ExtraSectionAddAverageRowX add a row at bottom of chart with average values.
# ExtraSectionAddSumRowX add a row at bottom of chart with sum values.
# MaxNbOfExtraX is maximum number of rows shown in chart.
# MinHitExtraX is minimum number of hits required to be shown in chart.
#
# Example to report the 20 products the most ordered by "order.cgi" script
#ExtraSectionName1="Product orders"
#ExtraSectionCodeFilter1="200 304"
#ExtraSectionCondition1="URL,\/cgi\-bin\/order\.cgi||URL,\/cgi\-bin\/order2\.cgi"
#ExtraSectionFirstColumnTitle1="Product ID"
#ExtraSectionFirstColumnValues1="QUERY_STRING,productid=([^&]+)"
#ExtraSectionFirstColumnFormat1="%s"
#ExtraSectionStatTypes1=PL
#ExtraSectionAddAverageRow1=0
#ExtraSectionAddSumRow1=1
#MaxNbOfExtra1=20
#MinHitExtra1=1
在我们的项目中需要对包含某些特定参数的部分进行统计,如下是我们实际项目中配置文件添加的部分。
#扩展表格1的标题
ExtraSectionName1="Product orders scene"
#过滤返回码 200,304的纪录
ExtraSectionCodeFilter1="200 304"
#过滤URL包含dataservlet 或 sceneservlet的纪录
ExtraSectionCondition1="URL,dataservlet||URL,sceneservlet"
#标题名称
ExtraSectionFirstColumnTitle1="scene"
#过滤参数为scene
ExtraSectionFirstColumnValues1="QUERY_STRING,scene=([^&]+)"
ExtraSectionFirstColumnFormat1="%s"
ExtraSectionStatTypes1=1
ExtraSectionAddAverageRow1=1
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=20
MinHitExtra1=1
#扩展表格2的标题
ExtraSectionName2="Product orders vmethod"
ExtraSectionCodeFilter2="200 304"
ExtraSectionCondition2="URL,dataservlet||URL,sceneservlet"
ExtraSectionFirstColumnTitle2="vmethod"
ExtraSectionFirstColumnValues2="QUERY_STRING,vmethod=([^&]+)"
ExtraSectionFirstColumnFormat2="%s"
ExtraSectionStatTypes2=1
ExtraSectionAddAverageRow2=1
ExtraSectionAddSumRow2=1
MaxNbOfExtra2=20
MinHitExtra2=1
#扩展表格3的标题
ExtraSectionName3="Product orders dataset"
ExtraSectionCodeFilter3="200 304"
ExtraSectionCondition3="URL,dataservlet||URL,sceneservlet"
ExtraSectionFirstColumnTitle3="dataset"
ExtraSectionFirstColumnValues3="QUERY_STRING,dataset=([^&]+)"
ExtraSectionFirstColumnFormat3="%s"
ExtraSectionStatTypes3=1
ExtraSectionAddAverageRow3=1
ExtraSectionAddSumRow3=1
MaxNbOfExtra3=20
MinHitExtra3=1
注意各个参数以已1,2,3...结尾,分别标示为各扩展表的属性。
- 大小: 149.3 KB
分享到:
相关推荐
awstats日志分析插件IP库。可以分析IP来源。
利用awstats对日志进行分析 以网页的方式查看自己网站的流量 PV 等
AWStats日志分析工具在IIS6、IIS7的安装说明 AWStats日志分析工具在IIS6、IIS7的安装说明 AWStats日志分析工具在IIS6、IIS7的安装说明
awstats 检测IIS的日志文件,非常好用
日志分割工具 ,工具有依赖,所以安装的时候:用yum localinstall 安装。具体使用方法可以baidu,网上博文,怎么没办法选择0积分呢?
Awstats 7分析squid日志【安装+配置】
超有效的日志分析工具
2. 上传awstats-7.0.tar.gz到/usr/local目录下。 3. 赋予执行权限。 #chmod +x awstats-7.0.tar.gz 4. 解压文件。 #tar zxvf awstats-7.0.tar.gz 5. 解压完后会生成awstats7.0文件夹,包含docs README.TXT tools ...
一个充分的日志分析让AWStats显示您下列资料: * 访问次数、独特访客人数, * 访问时间和上次访问, * 使用者认证、最近认证的访问, * 每周的高峰时间(页数,点击率,每小时和一周的千字节), * 域名/国家的主机访客(页数,...
apache,日志,分析系统,awStats,完全教材
Awstats是一个免费非常简洁而且强大有个性的统计工具。它可以统计您站点的如下信息: 一:访问量,访问次数,页面浏览量,点击数,数据流量等 二:精确到每月、每日、每小时的数据 三:访问者国家 四:访问...
awstats_超级无敌的全能web网站日志分析工具
Awstats 是在 SourceForge 上发展很快的一个基于 Perl 的 WEB 日志分析工具,一个充分的日志分析让 Awstats 显示您下列资料: • 访问次数、独特访客人数, • 访问时间和上次访问, • 使用者认证、最近认证的访问, ...
Advanced Web Statistics(AWStats)是一个免费的功能强大的服务器日志分析工具,它可以告诉你所有的Web统计数据,包括访问量、访问者数量、页面、点击、高峰时段、操作系统、浏览器版本、搜索引擎、关键字、机械访问...
前阵子一直研究的一个网站分析工具,这个是基于日志文件的分析工具,整理了一下。老下载别人的东西,也共享出来自己的心得。 本人在网站根据文档说明实施过,可以用。
Nginx 日志分析 AWStats + JAWStats 安装配置 Awstats 是一款基于 Perl 的 WEB 日志分析工具,而 JAWStats 是一款基于 PHP 的统计套件,旨在为 Awstats 提供更为精美图形界面。
门户网站的运维,日志分析很重要,快速构建安全实用的日志分析系统尤为重要
软件作用:在awstats日志分析页面上,增加一列"Location",显示网门用户的IP地址所对应的地理位置(国家/城市)。 集成到awstats v7.9时,用到2个perl插件文件。 附件内容: 1. awstats v7.9; 2. awstats 两个IP...