Results 1 to 8 of 8

Thread: Duplicated C-Client-ID Values in Logs

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2013
    Posts
    4

    Default Duplicated C-Client-ID Values in Logs

    I am working on using Wowza logs to determine the amount of video watched on our web-server over a given period of time. In order to accomplish this, I am parsing the logs for play and stop events that have the same c-client-ID. The problem i'm running into is that I am, at times, seeing multiple play events / stop events with a duplicated or re-used c-client-ID value.

    I correct in reasoning that for any connection to the server, the ID for that connection should be associated with a single play event and a single stop event. Is there any reason this c-client-ID value would be duplicated as described above?

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Look for the x-event "destroy" row for a client-id. Or the last row in the log with a client-id. The cs-bytes (client to server bytes) and sc-bytes (server to client bytes) are cumulative, so that is the only row you really need for stats.

    Richard

  3. #3
    Join Date
    Jan 2013
    Posts
    4

    Default

    Initially I was going to do this; however, I noticed that the destroy event can occur several seconds later than a stop event.

    Specifically since I am attempting to gather information based on the amount of time the users watched video, I am attempting to gather the play and stop events for a specific c-client-ID since these events, have, in my testing, regularly correlated with video beginning to play and the user closing the video. The time in between the play and pause events differs from (generally is less than) the duration that is reported with the "destroy" events.

    Given this difference, I would re-pose my original question: Is it possible to have multiple play events or multiple stop events with the same value for c-client-ID ?

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Yes it is for RTMP clients which uses a NetConnection that corresponds to a client in Wowza and could start and stop many Netstreams. There might be more than one at a time, and/or one after the other. This would most likely be a custom player. Most standard players connect then play, then stop play and disconnect

    Richard

  5. #5
    Join Date
    Jan 2013
    Posts
    4

    Default

    I see, the question then arises, is the duration that is reported with the destroy event the most accurate value for determining the length of time during which a user played video?

    As I mentioned above, I had found that the most accurate timing for determining amount of video played/watched was the timing between play/stop events as opposed to the duration event reported upon connection destroy which I believe, (correct me if I am wrong) reports the duration for the whole client - server connection whether or not video was playing.

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Whatever works best for you is okay. It take some experimenting to see what the log files produce. It is best to do short isolated tests and analyze the actual result.

    Richard

Similar Threads

  1. Error in logs BufferUtils and show logs in terminal
    By livesreamingforall in forum General Forum
    Replies: 7
    Last Post: 06-30-2015, 06:53 AM
  2. Connect Timeout Values
    By daswerve in forum General Forum
    Replies: 6
    Last Post: 05-17-2013, 10:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •