total bandwidth usage from stat log file
how to calculate total bandwidth from stat log file for live streaming.. i got cs-bytes,sc-bytes,cs-stream-bytes,sc-stream-bytes for following....
INFO session connect-pending
INFO session connect
INFO stream create
INFO stream play
INFO stream stop
INFO stream destroy
INFO session disconnect
i have to add all these bytes........? can anyone guide me?
No, data is cumulative. Use "stream stop" or "stream destroy" for totals in sc-stream-bytes and x-duration, etc.
What is the difference between "destroy" and "stop"?
I noticed that in some cases "destroy" and "stop" come up in the log file, and other times only "stop" appears.
There's a logging chapter in the User Guide with tables of definitions:
Play has stopped on a stream
Media or data stream created
Media or data stream destroyed
From my experience, it seems like stop is the best log entry to determine cumulative bandwidth. I haven't figured out why some events cause both the stop and destroy entries, while all events log a stop entry.
To be thorough, you can't necessarily count on these events. You could pull the plug on a server, and even under normal conditions there might be exceptions. The real total cumulative data for a session is in the last log row in date/time order for a client-id, whatever event that is.
You could also look at using CasterStats a log analyzer designed for broadcasters which now fully supports Wowza Media Server. See http://www.casterstats.com/wowza_stats.php for more information.
Can you write up a simple (as possible) guide to setting up CasterStats to use with Wowza? You can put it in the Showcase forum for now:
Originally Posted by rrlanham