Previous | Next |
The client statistics log file for the current version of Windows Media Services can provide very detailed information about the usage of your server. But this detail often makes the information difficult to use. In many cases, all you need is an overview. Windows Media Services logs can be imported by utilities, such as the Analysis tool of Microsoft® Site Server version 3.0. After the log is imported into such a tool, the vast amount of data can be combined in any number of ways to create easy-to-read summaries or full reports. The PERL ParseLog Script Sample demonstrates a very simple approach to building reports, especially if you require regular daily or weekly summaries that always use the same layout.
You can use the script to parse individual log files, or specify a directory from which every log file must be parsed into one report. Summary information includes reception statistics, types of client operating systems, and URL hits sorted in three different ways: by total hits, by unique client hits, and alphabetically.
The following example summary was generated by using this script, and combines data from four different logs:
E:\Logs>parselog e:\logs
Parsing V3.0 log file e:\logs\NetShow.980311000.log
Parsing V3.0 log file e:\logs\NetShow.980312000.log
Parsing V3.0 log file e:\logs\NetShow.980313000.log
Parsing V3.0 log file e:\logs\NetShow.980314000.log
Summary of records from 1998-03-11 00:34:25 to 1998-03-14 23:51:29
Total hits: 2911
Unique clients: 1454
Max simultaneous clients: 89
Average reception quality: 99.31% (Max:100.00% Min:0.00%)
Total packets sent: 8401088
Total packets received: 8342920
Total packets recovered ECC: 699615 (8.33% of total sent)
Client OS information:
95 4.0.1111 31.36%
95 4.0.950 30.92%
95 4.0.1212 20.99%
NT 4.0.1381 11.30%
95 4.10.1650 2.03%
NT 4.0.1 1.79%
95 4.10.1691 0.55%
95 4.10.1702 0.27%
95 4.10.1671 0.24%
95 1556.2563.0 0.10%
95 1558.2563.0 0.10%
95 4.10.1704 0.07%
95 4.0.1163 0.07%
95 4.10.1708 0.07%
95 4.10.1602 0.03%
95 4.10.1677 0.03%
95 4.10.1700 0.03%
NT 5.0.1745 0.03%
Client return status information:
0x0 99.97%
0xC00D002B 0.03%
URL Total Hits* Unique Hits
----------------------------- ---------- ---------
msbd://172.113.165.21:20999 1462 (50.2%) 794
mms://192.67.75.25/Channel1 581 (20.0%) 227
msbd://172.67.75.25:7007 431 (14.8%) 257
D:/ASFRoot/comclb/RodLF-288.asf 103 (3.5%) 56
msbd://192.67.75.26:7007 66 (2.3%) 44
D:/ASFRoot/LiveArchive/viv/sraudio.asf 65 (2.2%) 19
D:/ASFRoot/Twist/TTVMir-28K.asf 17 (0.6%) 9
D:/ASFRoot/RokTk/fillmorevideo.asf 15 (0.5%) 9
D:/ASFRoot/comclb/RodLF-56.asf 14 (0.5%) 12
D:/ASFRoot/LiveArchive/viv/srvideo56.asf 13 (0.4%) 4
d:/ASFRoot/Twisted/TR041597.asf 12 (0.4%) 6
D:/ASFRoot/LiveArchive/dhtml/part1/sr1-28.asf 12 (0.4%) 10
D:/ASFRoot/RokTk/fillmoreslide.asf 10 (0.3%) 6
D:/ASFRoot/RokTk/la.asf 8 (0.3%) 7
D:/ASFRoot/comclb/mr_lck_28.asf 8 (0.3%) 6
See Also
Log Analysis Script Sample, Using the PERL ParseLog Script Sample, Windows Media Technologies Solutions Samples
Previous | Next |