Results 1 to 5 of 5

Thread: completely bypass cache

  1. #1
    Join Date
    Jul 2014

    Default counting data transfer when multiple client accounts share a media source


    Is there a practical way to track traffic from multiple edge VOD servera based on the subdirectory the video originates in?

    For instance, delivering videos from multiple customer accounts which all share the same application and media store configuration on wowza, but who's content is called from a unique subdomain, I.e


    The only thing that differs is the directory each client's videos are stored in the media source.

    Now across multiple servers, using a utility readily available, is there a way we can count and separate each accounts traffic for invoicing purposes?

    Writing a custom log processor is feisible but I thought I'd ask here in case anyone is doing anything similar

    What do you guys think? I really appreciate any input anybody has. Thanks.
    Last edited by bo-lee_f; 07-08-2014 at 02:37 AM.

  2. #2


    Is "" logged anywhere? If so, and the format doesn't change (i.e. the client sub-directory always follows mp4: ) then a simple option is to capture the paths into a plain text file and run a sort and count on them, e.g.

    List of data to collate, redirected to a file called dirlist:
    Extract the client*_directory columns, sort them and provide a total per directory:

    cat dirlist |awk -F: '{ print $2 }'|awk -F \/ '{ print $1 }'|sort|uniq -c|sort
    Output will be totals per directory, sorted from low to high

       1 client5_directory
       2 client1_directory
       2 client2_directory
       2 client4_directory
       3 client3_directory
    A bit clunky but costs nothing .


    Just to add, of course the above is if you are on a linux type server, or have something like cygwin installed if running Windows.

  3. #3
    Join Date
    Jul 2014


    That's interesting thanks. Expanding slightly, could we manage something more 'finished' by simply configuring awstats instances wouls produce separate counts for each different client folder variant it finds?

    We could prefix each client folder client-01 client-02

    Or even simpler, specifying the OnlyFiles="REGEX[client-directory\/]" option in individual awstats would produce separate reports we could give individual client access to. Do you see an obvious problem with that other than the fact it would mean the same logs being processed multiple times which isn't efficient.

    The wowza logs contain accurate byte counts that could be used to determine client data usage don't they?
    Last edited by bo-lee_f; 07-08-2014 at 05:11 AM.

  4. #4


    Yes, Wowza logs bytes culmatively for server to client and client to server. You can see a description of each log4j field name in the User Guide.

    AWstats RegEX sounds like it may give you what you want. Guess it depends on how the data is logged. Could you not concatenate the log files from all servers prior to running the stats on them?

  5. #5
    Join Date
    Jul 2014


    Yes that's entirely possible. I'll have a tinker. Thanks

Similar Threads

  1. Newbie to Wowza... completely lost
    By jeffpgray in forum Live Streaming and Encoder Discussion
    Replies: 6
    Last Post: 09-19-2013, 03:16 PM
  2. Bypass secure token
    By sujeet in forum Server-side Modules and Code Samples Discussion
    Replies: 1
    Last Post: 05-01-2012, 05:38 AM
  3. How to completely remove a stream?
    By jachai in forum Live Streaming and Encoder Discussion
    Replies: 5
    Last Post: 01-18-2012, 04:50 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