Hi there, im currently trying to look at how it would be possible to  
setup a custom log format for an application, storing its details in  
its own log directory, collecting the streamed bytes sent to each  
client connected, unique connections, hits etc. We currently use  
windows media which has a log format like this

#StartDate: 2006-07-13 00:00:56
#EndDate: YYYY-MM-DD HH:MM:SS
#TimeFormat: UTC
#EncodingFormat: UTF-8
#ServerName: pistolmediawww1
#ServerIP: 10.0.89.251
#Software: Windows Media Services
#Version: 9.01.01.3814
#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


If you see the number /R1S418999 , this is the unique stream point for  
a particular customer, and their users will use this stream point to  
access the videos, windows media call this stream point a publishing  
point which can be either a multicast/unicast broadcast point, or a  
unicast VOD point.

Each point has its own customisable settings, and each point has its  
own seperate log directory which a new file rolled over each day ie the  
log files are called WMS_20060712.log, WMS_20060713.log etc.

Now what Im trying to work out if a red5 application is capable of  
collecting a clients ip, or if anonymous, collect how many streams were  
sent for the day, bytes sent to the client, which would have to somehow  
be calculated from the start of that stream to the end of that stream,  
and as with windows media, fast forward and reverse events update the  
logs with the changed bytes sent etc. What methods in the API should I  
be looking at for this ? Im assuming there is no custom log examples  
atm, is log4j easily manipulated inside an application, I can see the  
log4j.properties settings file howveer I cant seem to find an example  
application which actually uses it ?

let me know.

Dan


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to