From 8ca46b23594f6f7f6f0972faf49cdc9798fa66a7 Mon Sep 17 00:00:00 2001
From: eldy <>
Date: Sun, 15 Sep 2002 17:42:36 +0000
Subject: [PATCH] Made changes to prepare sendmail log analysis.
---
docs/awstats_config.html | 51 ++++-----
docs/awstats_faq.html | 119 ++++++++++++++++----
docs/awstats_what.html | 2 +-
wwwroot/cgi-bin/awstats.model.conf | 6 +-
wwwroot/cgi-bin/awstats.pl | 175 ++++++++++++++++++-----------
5 files changed, 239 insertions(+), 114 deletions(-)
diff --git a/docs/awstats_config.html b/docs/awstats_config.html
index 521437ad..efb58033 100644
--- a/docs/awstats_config.html
+++ b/docs/awstats_config.html
@@ -230,31 +230,32 @@ when reading it), follow the example:
# With LogFormat=4, some features (browsers, os, keywords...) can't work.
# 5 = ISA server standard log format
# "your_own_personalized_log_format" = If your log is a personalized format,
-
# you must use the following syntax keys to define the log format string:
-
# %host Host client name or IP address
-
# %logname Authenticated login/user used on protected pages
-
# %time1 Date and time with format: [dd/mmm/yyyy:hh:mm:ss +0000]
-
# %time2 Date and time with format: yyyy-mm-dd hh-mm-ss
-
# %methodurl Method and URL with format: "GET /index.html HTTP/x.x"
-
# %methodurlnoprot Method and URL with format: "GET /index.html"
-
# %method Method with format: GET
-
# %url URL only with format: /index.html
-
# %query Query string (used by URLWithQuery option)
-
# %code HTTP return code with format: 999
-
# %bytesd Size of document in bytes
-
# %refererquot Referer page with format: "http://from.com/from.htm"
-
# %referer Referer page with format: http://from.com/from.htm
-
# %uaquot User agent with format: "Mozilla/4.0 (compatible, ...)"
-
# %ua User agent with format: Mozilla/4.0_(compatible...)
-
# %gzipin Mod_gzip compression input bytes: In:XXX
-
# %gzipout Mod_gzip compression output bytes & ratio: Out:YYY:ZZZpct.
-
# %gzipratio Mod_gzip compression ratio: ZZZpct.
-
# %syslog Syslog-specific time and host stamp with format: Mon ddhh:mm:ss hostname
-
# %virtualname Web sever virtual hostname. Use this tag when same log
-
# file contains data of several virtual web servers. The
-
# SiteDomain will be used to filter the one you want.
-
# If your log format has some fields not included in this list, use
-
# %other Means another field
+
# you must use the following syntax keys to define the log format string:
+
# %host Host client name or IP address
+
# %logname Authenticated login/user used on protected pages
+
# %time1 Date and time with format: [dd/mmm/yyyy:hh:mm:ss +0000]
+
# %time1b Date and time with format: [dd/mmm/yyyy:hh:mm:ss]
+
# %time2 Date and time with format: yyyy-mm-dd hh-mm-ss
+
# %methodurl Method and URL with format: "GET /index.html HTTP/x.x"
+
# %methodurlnoprot Method and URL with format: "GET /index.html"
+
# %method Method with format: GET
+
# %url URL only with format: /index.html
+
# %query Query string (used by URLWithQuery option)
+
# %code Return code status (with format for web log: 999)
+
# %bytesd Size of document in bytes
+
# %refererquot Referer page with format: "http://from.com/from.htm"
+
# %referer Referer page with format: http://from.com/from.htm
+
# %uaquot User agent with format: "Mozilla/4.0 (compatible, ...)"
+
# %ua User agent with format: Mozilla/4.0_(compatible...)
+
# %gzipin Mod_gzip compression input bytes: In:XXX
+
# %gzipout Mod_gzip compression output bytes & ratio: Out:YYY:ZZZpct.
+
# %gzipratio Mod_gzip compression ratio: ZZZpct.
+
# %syslog Syslog-specific time and host stamp with format: Mon dd hh:mm:ss hostname
+
# %virtualname Web sever virtual hostname. Use this tag when same log
+
# file contains data of several virtual web servers. The
+
# SiteDomain will be used to filter the one you want.
+
# If your log format has some fields not included in this list, use
+
# %other Means another field
#
# Examples for Apache combined logs (this two examples are equivalent):
# LogFormat = 1
diff --git a/docs/awstats_faq.html b/docs/awstats_faq.html
index ba0c8bd7..3a54af29 100644
--- a/docs/awstats_faq.html
+++ b/docs/awstats_faq.html
@@ -37,7 +37,7 @@
ABOUT QUESTIONS:
|
OS: Windows NT 4.0, Windows 2000, Windows Me, Linux, Macintosh, Solaris, Aix, BeOS, ... -Web/Wap/Proxy servers -Apache, IIS 5.0, WebStar, WebLogic, WebSite, Tomcat, Squid, Roxen, Resin, IPlanet, IceCast, Zope, www4mail, ... +Web/Wap/Proxy/FTP/Mails servers +Apache, IIS 5.0, WebStar, WebLogic, WebSite, Tomcat, Squid, Sendmail, Roxen, Resin, ProFTP, IPlanet, IceCast, Zope, www4mail, ... Perl interpreters: ActivePerl 5.6, Perl for unix 5.0, mod_perl for Apache, ... |
| $Message[128] | \n"; } # When - print "
|---|
| $Message[93] : | \n"; - print ($frame?""); + $linetitle=$ShowMonthDayStats+$ShowDaysOfWeekStats+$ShowHoursStats; + if ($linetitle) { print " |
| $Message[93] : | \n"; } + if ($linetitle) { print ($frame?""); } if ($ShowMonthDayStats) { print ($frame?" |
| ":""); print "$Message[5]/$Message[4]"; print ($frame?" |
| ":""); print "$Message[91]"; print ($frame?" |
| ":""); print "$Message[20]"; print ($frame?" |
| $Message[92] : | \n"; - print ($frame?""); + $linetitle=$ShowDomainsStats+$ShowHostsStats+$ShowAuthenticatedUsers+$ShowEMailSenders+$ShowEMailReceivers+$ShowRobotsStats; + if ($linetitle) { print " |
| $Message[92] : | \n"; } + if ($linetitle) { print ($frame?""); } if ($ShowDomainsStats) { print ($frame?" |
| ":""); print "$Message[17]"; print ($frame?" |
| ":""); print "".ucfirst($Message[81]).""; print ($frame?" |
| |
| ":""); print "$Message[53]"; print ($frame?" |
| |
| |
| $Message[72] : | \n"; - print ($frame?""); + $linetitle=$ShowSessionsStats+$ShowPagesStats+$ShowFileTypesStats+$ShowFileSizesStats+$ShowOSStats+$ShowBrowsersStats; + if ($linetitle) { print " |
| $Message[72] : | \n"; } + if ($linetitle) { print ($frame?""); } if ($ShowSessionsStats) { print ($frame?" |
| ":""); print "$Message[117]"; print ($frame?" |
| ":""); print "$Message[29]\n"; print ($frame?" |
| |
| ":""); print "$Message[21]"; print ($frame?" |
| |
| |
| $Message[23] : | \n"; - print ($frame?""); + $linetitle=$ShowOriginStats+$ShowKeyphrasesStats+$ShowKeywordsStats; + if ($linetitle) { print " |
| $Message[23] : | \n"; } + if ($linetitle) { print ($frame?""); } if ($ShowOriginStats) { print ($frame?" |
| ":""); print "$Message[37]\n"; print ($frame?" |
| |
| |
| ":""); print "$Message[14]"; print ($frame?" |
| |
| |
| $Message[2] : | \n"; - print ($frame?""); + $linetitle=$ShowCompressionStats+$ShowHTTPErrorsStats; + if ($linetitle) { print " |
| $Message[2] : | \n"; } + if ($linetitle) { print ($frame?""); } if ($ShowCompressionStats) { print ($frame?" |
| ":""); print "$Message[98]"; print ($frame?" |
| ":""); print "$Message[22]"; print ($frame?" |
| |