Package: awstats
Version: 6.5-1
Severity: normal

Attempting to run awstats on a realserver log provided to us in W3C
format resulted in all entries being dropped.  Showing the dropped
entries gave output like this:

  Dropped record (method/protocol 'RTSP' not qualified when LogType=S):
  10.1.1.1 2006-01-28 13:08:54 -- rtsp://real.example.com/blah/example.rm 
1138453734 128 -- 200 999-999 6.0.12.1 ar-eg RN30DL -- RealPlayer 6.0.12.1 
WinNT 5.1 686 280 10367990 -- RTSP UDP 
44_Kbps_Stereo_Music_High_Response_-_RealAudio -- -- 1980572 -- -- -- -- -- -- 
571 -- -- -- -- -- -- -- -- --

Looking at the code - "rtsp" is recognised, but only in lower case.
I've patched my copy to convert the string to lowercase before checking.


--- awstats.pl  2006-01-30 16:55:10.156087185 +0000
+++ awstats.pl.orig     2006-01-30 16:54:30.192974487 +0000
@@ -6297,5 +6297,5 @@
                        # HTTP request. Keep only GET, POST, HEAD, *OK*
                        # and ERR! for Webstar. Do not keep OPTIONS,
                        # TRACE
                }
-               elsif (($LogType eq 'W' || $LogType eq 'S') && 
($field[$pos_method] eq 'GET' || $field[$pos_method] eq 'mms' || 
lc($field[$pos_method]) eq 'rtsp' || $field[$pos_method] eq 'http' || 
$field[$pos_method] eq 'RTP')) {
+               elsif (($LogType eq 'W' || $LogType eq 'S') && 
($field[$pos_method] eq 'GET' || $field[$pos_method] eq 'mms' || 
$field[$pos_method] eq 'rtsp' || $field[$pos_method] eq 'http' || 
$field[$pos_method] eq 'RTP')) {
                        # Streaming request (windows media server,
                        # realmedia or darwin streaming server)
                }



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to