From: eldy <>
Date: Sun, 6 Jul 2003 05:50:57 +0000 (+0000)
Subject: Added support for Darwin streaming server.
X-Git-Tag: AWSTATS_5_7_BETA~71
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e08f0ae46b3fab474e86d94d3b16de580653176;p=thirdparty%2FAWStats.git
Added support for Darwin streaming server.
---
diff --git a/docs/awstats_changelog.txt b/docs/awstats_changelog.txt
index 3df65091..cd7c08b1 100644
--- a/docs/awstats_changelog.txt
+++ b/docs/awstats_changelog.txt
@@ -18,9 +18,10 @@ Fixes:
- " " changed to " " in miscellanous chart.
New features/improvments:
-- None
+- Added support for Darwin streaming server.
Other/Documentation:
+- Added mp4 mime type.
- Updated documentation.
diff --git a/docs/awstats_faq.html b/docs/awstats_faq.html
index a11c8938..b03c970d 100644
--- a/docs/awstats_faq.html
+++ b/docs/awstats_faq.html
@@ -51,7 +51,7 @@ FAQ-COM025 How to use AWStats with no server log
FAQ-COM050 What is the log size limit AWStats can analyze ?
FAQ-COM090 Setup for FTP server log files.
FAQ-COM100 Setup for MAIL log files (Sendmail, Postfix, QMail, Exchange).
-FAQ-COM110 Setup for MEDIA SERVER log files (Realmedia, Windows media server).
+FAQ-COM110 Setup for MEDIA SERVER log files (Realmedia, Windows media, Darwin streaming server).
FAQ-COM120 How to rotate my logs without loosing data.
FAQ-COM130 How to run AWStats frequently ?
FAQ-COM140 How to exclude my IP address (or whole subnet mask) from stats ?
@@ -117,7 +117,7 @@ Examples of used platforms (bold means 'tested by author', others were reported
Windows 2000, Windows NT 4.0, Windows Me, Linux, Macintosh, Solaris, Aix, BeOS, ...
Web/Wap/Proxy/FTP/Mails/Streaming servers
Apache 1.3.x and 2, IIS 5.0, WebStar, WebLogic, WebSite, Windows Media Server, Tomcat, Squid, Sendmail, Postfix, QMail,
-Roxen, Resin, ProFTP, Lotus Notes/Domino, IPlanet, IceCast, ZeroBrand, Zeus, Zope, Abyss, www4mail, ...
+Roxen, Resin, ProFTP, Lotus Notes/Domino, Darwin, IPlanet, IceCast, ZeroBrand, Zeus, Zope, Abyss, www4mail, ...
Perl interpreters:
ActivePerl 5.6, Perl 5.8, Perl 5.6, Perl 5.0, mod_perl for Apache, ...
@@ -404,9 +404,9 @@ Modify this new config file:
Now you can use AWStats as usual (run the update process and read statistics).
-For Windows Media Server
+For Windows Media Server / Darwin Streaming Server
-1- If your Windows Media Server version allows it, setup your log format to write the following fields:
+1- If your Windows Media / Darwin streaming Server version allows it, setup your log format to write the following fields:
c-ip
date
@@ -444,9 +444,10 @@ Listen to streaming files and check that your new log file looks like this:
-If your Windows Media Server version does not allow to define your log format:
-Just follow instructions in step 2 directly but use the log format string found in first
-lines of your log files as value for AWStats LogFormat parameter, for example:
+If your Windows Media/Darwin Streaming Server version does not allow to define your log format:
+Just follow instructions in step 2 directly but use the log format string found in first lines
+of your log files (Just after the "#Fields:" string) as value for AWStats LogFormat
+parameter. For example, you could have a LogFormat defined like this:
LogFormat="c-ip date time c-dns cs-uri-stem c-starttime x-duration c-rate
c-status c-playerid c-playerversion c-playerlanguage cs(User-Agent)
@@ -468,6 +469,7 @@ Modify this new config file:
LogFile="/pathtomediaserver/mediaserverlog"
LogFormat="c-ip date time cs-uri-stem c-starttime x-duration c-rate c-status c-playerid c-playerversion c-playerlanguage cs(User-Agent) cs(Referer) c-hostexe c-hostexever c-os c-osversion c-cpu filelength filesize avgbandwidth protocol transport audiocodec videocodec channelURL sc-bytes"
+
DecodeUA=1
ShowMenu=1
ShowMonthStats=UHB
ShowDaysOfMonthStats=HB
diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl
index 1f2484f7..c1c53872 100644
--- a/wwwroot/cgi-bin/awstats.pl
+++ b/wwwroot/cgi-bin/awstats.pl
@@ -5175,7 +5175,7 @@ if ($UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft') { # Updat
$protocol=1;
}
elsif ($field[$pos_method] eq 'SMTP') {
- # Mail request ('SMTP' for sendmail with sma)
+ # Mail request ('SMTP' for mail log with maillogconvert.pl preprocessor)
$protocol=3;
}
elsif ($field[$pos_method] eq 'RETR' || $field[$pos_method] =~ /get/i) {
@@ -5186,8 +5186,8 @@ if ($UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft') { # Updat
# FTP SENT request
$protocol=2;
}
- elsif ($field[$pos_method] eq 'mms') {
- # Streaming request
+ elsif ($field[$pos_method] eq 'mms' || $field[$pos_method] eq 'RTP') {
+ # Streaming request (windows media server or darwin streaming server)
$protocol=4;
}
elsif ($field[$pos_method] =~ /\d\d\d\d/) {