Hi there, im now trying to come back to this, im attempting to setup a log4j W3C file appender class for logging particular data in red5 as the format of the standard file appender is not at all ideal. I need to have it setup similar to how windows media logs stuff. I sent an email about this ages ago but really do need to implement it so we have some kind of monitoring and status of the streams.

So my question is what methods would i use in my application adaptor to log each stream, would it be at the client connection or client disconnection or somehow trap when the video has finished playing and then start a new log entry etc.

 And what methods can i use to obtain particular details, like host, the user agent of the host, the player version,  file requested uri, the duration streamed, the bitrate of the clip, the total bytes sent, the filesize of the clip, average bandwidth streamed, the file codecs streamed, packets sent, packets receievded, buffering count, buffer times for each stream so we know if videos a rebuffering which im having troubles with in red5 at the moment etc.

Basically like what is below for our windows media log.


#PublishingPoint: R1S418999
#Fields: 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)  
cs(Referer) c-hostexe c-hostexever c-os c-osversion c-cpu filelength  
filesize avgbandwidth protocol transport audiocodec videocodec  
channelURL sc-bytes c-bytes s-pkts-sent c-pkts-received  
c-pkts-lost-client c-pkts-lost-net c-pkts-lost-cont-net c-resendreqs  
c-pkts-recovered-ECC c-pkts-recovered-resent c-buffercount  
c-totalbuffertime c-quality s-ip s-dns s-totalclients s-cpu-util  
cs-user-name s-session-id s-content-path cs-url cs-media-name  
c-max-bandwidth cs-media-role s-proxied

And sample data like this

70.149.18.173 2006-07-13 00:04:54 - /R1S418999/135-300.wmv 0 20 5 200  
{3300AD50-2C39-46c0-AE0A-BC85EB41DFD6} 11.0.5358.4827 en-US  
Mozilla/4.0_(compatible;_MSIE_6.0;_Windows_NT_5.1;_SV1; 
_.NET_CLR_1.1.4322;_.NET_CLR_2.0.50727)_(WMFSDK/ 
11.0.5358.4827)_WMPlayer/11.0.5358.4827  
http://ourdomain.com/player.php?episodeID=135 iexplore.exe  
6.0.2900.2180 Windows_XP 5.1.0.2600 Pentium 762 27055109 1422589 http  
TCP - - - 3648285 3596055 1070 1055 0 0 0 0 0 0 1 1 100 192.168.50.36  
computername 115 11 - 1239432 file://\path\to\file\135-300.wmv  
http://theip/R1S418999/135-300.wmv 135-300.wmv 2495220 - 0
Dan
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to