Log Data Format

banner art

Previous Next

Log Data Format

The server writes client logging statistics to an internal buffer and puts a pointer to the buffer in the WMS_COMMAND_CONTEXT_BODY context value. The buffer contains XML in the following format.

<xml>
   <Summary>....</Summary>
   <c-ip>...</c-ip>
   <Date>...</Date>
   <Time>   </Time>
   <c-dns>...</c-dns>
   <cs-uri-stem>...</cs-uri-stem>
   <c-starttime>...</c-starttime>
   <x-duration>...</x-duration>
   <c-rate>...</c-rate>
   <c-status>...</c-status>
   <c-playerid>...</c-playerid>
   <c-playerversion>...</c-playerversion>
   <c-playerlanguage>...</c-playerlanguage>
   <cs(User-Agent)>...</cs(User-Agent)>
   <cs(Referer)>...</cs(Referer>
   <c-hostexe>...</c-hostexe>
   <c-hostexever>...</c-hostexever>
   <c-os>...</c-os>
   <c-osversion>...</c-osversion>
   <c-cpu>...</c-cpu>
   <filelength>...</filelength>
   <filesize>...</filesize>
   <Avgbandwidth>...</Avgbandwidth>
   <protocol>...</protocol>
   <transport>...</transport>
   <audiocodec>...</audiocodec>
   <videocodec>...</videocodec>
   <ChannelURL>...</ChannelURL>
   <sc-bytes>...</sc-bytes>
   <c-bytes>...</c-bytes>
   <s-pkts-sent>...</s-pkts-sent>
   <c-pkts-received>...</c-pkts-received>
   <c-pkts-lost-client>...</c-pkts-lost-client>
   <c-pkts-lost-net>...</c-pkts-lost-net>
   <c-pkts-lost-cont-net>...</c-pkts-lost-cont-net>
   <c-resendreqs>...</c-resendreqs>
   <c-pkts-recovered-ECC>...</c-pkts-recovered-ECC>
   <c-pkts-recovered-resent>...</c-pkts-recovered-resent>
   <c-buffercount>...</c-buffercount>
   <c-totalbuffertime>...</c-totalbuffertime>
   <c-quality>...</c-quality>
   <s-ip>...</s-ip>
   <s-dns>...</s-dns>
   <s-totalclients>...</s-totalclients>
   <s-cpu-util>...</s-cpu-util>
   <cs-user-name>...</cs-user-name>
   <s-session-id>...</s-session-id>
   <s-content-path>...</s-content-path>
   <cs-url>...</cs-url>
   <cs-media-name>...</cs-media-name>
   <c-max-bandwidth>...</c-max-bandwidth>
   <cs-media-role>...</cs-media-role>
   <s-proxied>...</s-proxied>
</xml>

The <Summary> tag contains a single W3C-compliant, space-delimited string in which each item represents a field of logged data. The order of the fields in the summary string corresponds to the W3C fields identified by the remaining XML tags in the preceding list.

The information in the <Summary> string can differ from that given for the remaining XML tags. The other XML tags contain the data actually sent by the client. However, in some cases that information is missing, and the server substitutes the appropriate values when creating the summary string. For example, the client cannot know the number of bytes sent by the server (sc-bytes), but the server knows that value and fills it in when creating the summary string. Further, for security reasons, the client does not send its IP address in a log. However, the server records the client IP address in the c-ip field of the summary string.

See Also

Previous Next