-
Darwin Streaming Server and AwStats.
How to analyse QTSS and MP3 log files ... and other boring anecdotes.
This is a techy entry just so I can refer to it in the future, or may save some other soul the time of wondering.
Darwin Streaming Server/QuickTime Streaming Server produces a variety of log files, generally in /var/streaming/logs or /var/log/streaming ... the two I was interested in were StreamingServer.log and mp3_acccess.log
StreamingServer.log contains requests to the main streaming server. You can analyse these logs in AwStats (I'm using version 6.6 build (build 1.887) with the following configuration parameters in your AwStats.*.conf (along with everything else you want as per the AwStats documentation)
LogType=S LogFormat=2mp3_access.log contains requests to any mp3 playlists or live streaming. You need the following configuration:
LogType=S LogFormat="%host %uaquot %time1 %methodurl %code %bytesd %extraX"and that pretty much does it. I need to work out some way of better using these logs to find out length of stay (that %extraX field is the duration of MP3 played in seconds)
This is all pretty easy to work out, but if you like the lazyweb this might help.
update
To stop Darwing Streaming Server from rotating the log files I've set the rotate on log-size and log-age parameters to 0, and it seems to work. Now I just need to work out a better way of rotating the logs in sync with creating the stats.
leave a comment
2007.11.20 08:57 GMT
Hi Dorian,
I am trying to run awstats on a static StreamingServer.log
i.e. in the config file Set the LogFile to a static log file that was copied from Darwin and placed on a share.
I am unable to get it to decode the logs. Is there something that I am missing ?
Thanks, Confused User
2007.11.26 11:20 GMT
The first thing I'd do is make sure that when you are running awstats.pl -update that it is using the correct conf file. For instance on FreeBSD when I run
/usr/local/www/awstats/cgi-bin/awstats.pl -update -config=qt
The first line reported is:
Create/Update database for config "/usr/local/www/awstats/cgi-bin/awstats.qt.conf"
Which is the right config file.
Then I'd make sure that there aren't duplicate LogType or LogFormat commands that may set them differently in the awstats.conf ... if either of those are over-ridden or not set correctly then awstats will to not be able to interpret the StreamingServer.log format and extract the data from it.
The output from the awstats.pl -update command will also let you know which log file it is trying to read, and if it's read, and been able to parse, anything in that file.