proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« 招行专业版 CMB 证书与注册表 | Main | iis web server 支持的 log 格式 »

May 22, 2006

awstats 的自定义 logformat 支持

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
http://windtear.net/archives/2006/05/22/000988.html
awstats 的自定义 logformat 支持

awstats 支持自定义 logformat
不过支持的还不够 我的需求没法满足

比如:
log 样例:"GET http://proxy.ipcn.org/proxylist.html HTTP/1.1"
这是squid记的log中的URL部分 (emulate_httpd_log on)

如果需要区分 proxy.ipcn.org 的话
logformat 没法定义 (希望只是我没搞定不会配)
尽管 awstats 提供了 %virtualname 等丰富的key

顺便也看了帮助和 awstats.pl 的代码 确认了默认几种LogFormat的格式和正则匹配方法

LogFormat=1 是带 Refer 和 User-Agent 的log
native combined log format (NCSA combined/XLF/ELF log format)

# 1 - Apache or Lotus Notes/Domino native combined log format
#     (NCSA combined/XLF/ELF log format)
# 2 - IIS or ISA format (IIS W3C log format). See FAQ-COM115 For ISA.
# 3 - Webstar native log format.
# 4 - Apache or Squid native common log format (NCSA common/CLF log format)
#     With LogFormat=4, some features (browsers, os, keywords...) can't work.

(略:$PerlParsingFormat 和 # Log records examples: )

相关文章:
2006-04-30 23:58 我爱网络 用 awstats 做网站访问日志分析
2006-05-08 20:24 我爱网络 研究解决awstats等日志分析软件对日志数据的时间顺序敏感性
本blog WWW

Posted by windtear at May 22, 2006 11:20 PM

Trackback Pings

TrackBack URL for this entry:
http://cgi.windtear.net/cgi-bin/wt-tb.cgi/988

Listed below are links to weblogs that reference awstats 的自定义 logformat 支持:

» awstats 日志分析在跨月时的一个处理小技巧 from windtear 追求完美
http://windtear.net/archives/2006/08/31/001071.html awstats 日志分析在跨月时的一个处理小技巧 两件事 1. 月底时处理log 生成页面的时间在新一月注意加参数 2. 只想最后一天生成全部分析页 其他时间只生成概述页的话 一个时间处理 第二件事可以忽略 除非机器太破 平时... [Read More]

Tracked on September 1, 2006 4:18 PM

» 安装 MaxMind GeoIP、GeoIP City Lite 为 awstats 配置 IP 位置国家城市统计信息 from windtear 追求完美
http://windtear.net/archives/2006/09/03/001074.html 安装 MaxMind GeoIP、GeoIP City Lite 为 awstats 配置 IP 位置国家城市统计信息 http://www.maxmind.com/download/geoip/api/c/ http://www.maxmind.com/download/geoip/api/c/GeoIP-1.4.0.tar.gz http://www.maxmi... [Read More]

Tracked on September 3, 2006 12:44 PM

Comments

这个玩意,能装到非apache的系统上吗?
老是要自动改httpd.conf, 可是我家
lighttpd么有阿.

Posted by: is at June 1, 2006 12:00 AM

就是一个 pl CGI 呀
不过我不这么用 只是研究研究 呵呵
自动改 httpd.conf 是因为你安装的时候选择让它改了 可以不让他改的

Posted by: windtear at June 2, 2006 10:40 AM

blog主真强.不过有关日志我有个问题,想请教一下.就是我自定义日志为apache格式时.显示的日志为这样.
192.168.1.145 - - [25/Feb/2008:13:34:25 +0800] "POST http://www.onezone.com/blog/utils/blogUserInfo.jsp? HTTP/0.0" 411 1996 "-" "-" TCP_DENIED:NONE

为什么blogUserInfo.jsp?后面的详细内容没有了啦?那些参数我要怎么样才能得到?

Posted by: iakuf at February 26, 2008 10:17 AM

Post a comment

Remember Me?


本站使用中的任何问题,请与 windtear SPAM windtear SPAM net 联系
Copyright© 1999-2008 Windtear. All rights reserved.
京ICP备05050670号