1- If your Windows Media / Darwin streaming Server version allows it, setup your log format to write the following fields:
如果你的WMS版本允许设置日志的格式,可以把日专设为下列格式:
To make the change effective, stop your server, remove old log files and restart the server.
为了使设置生效,把WMS服务停止,删除旧的日志文件,然后重新启动服务器
Listen to streaming files and check that your new log file looks like this:
查看一个流媒体文件,然后看一下新的日志文件,它看起来是下面这样:
If your Windows Media/Darwin Streaming Server version does not allow to define your log format:
如果你的WMS的版式本不允许你自定义日志格式:
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:
那你就直接进入第二步,分析器将使用日志文件的第一行内容(在"#Fields:"之后的内容)作为日志格式参数,例如你可能在配置文件中的LogFormat有下面这样定义:
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) 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" |
This means you don't use the AWStats tags but AWStats can often also understand all the IIS and/or Windows Media Server tags.
这就代表你不使用awstats标记,但awstats通常能理解所有的IIS和WMS标记。
2- Then setup AWStats to analyze your Media Server log:
Copy config awstats.model.conf file to "awstats.mediaserver.conf".
Modify this new config file:
下面就来设置配置文件来分析WMS日志:
从awstats.model.conf 文件复制一个新的文件,可以起名为"awstats.mediaserver.conf"
修改新的配置文件:
Now you can use AWStats as usual (run the update process and read statistics).
现在你就可以使用AWStats来分析WMS日志了
原文参见:http://awstats.sourceforge.net/docs/awstats_faq.html#MEDIASERVER