Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Custom Log Entries

  1. #1
    Join Date
    Jan 2012
    Posts
    15

    Post Custom Log Entries

    Hello Fellows

    I'm new with WOWZA and I've search for whole forum and I can not found any post which answer my question.

    There are some way to make custom log entries? I'm talking about to log things like id of user who watched the video and the minutes watched by a user.

    There are some API or some thing like this?

    Thanks.

  2. #2
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    Take a look at this post:

    http://www.wowza.com/forums/content....aming-by-users

    I don't think you need it, but you can also add customs log fields with the ILogNotify interface.

    Richard
    Last edited by rrlanham; 01-05-2012 at 07:58 AM.

  3. #3
    Join Date
    Jan 2012
    Posts
    15

    Default

    Thanks Richard. I will check out and make some tests.

  4. #4
    Join Date
    Jan 2012
    Posts
    15

    Post

    Hi Richard. I did some tests on my server and I have new questions.

    I need develop a system with some kind of user control.

    I checked out the link you sent to me, and i'm already using this feature, is very useful for a one video streaming.

    But I need develop a same control for a live stream video playlist. I'm using a streamschedule.smil with a list of videos which played in my server like on this example -> http://www.wowza.com/forums/content....t-in-smil-file

    WOWZA can log each event I need, but its very complicated to be a linear analysis. WOWZA log when the stream is started and when the certain file was playing on the server. WOWZA also logs when an user started watch some video and when this user log out of this video. But, when we speak in a great number of users this control is very confused.

    What I need is very simple: In just one line WOWZA tell me what video file the user was watching. I will show an example what I need.

    This is how WOWZA do the log with a one video streamming (I will hide unnecessary information)
    2012-01-05	14:11:24	BRST	play	stream	INFO	200	sample.mp4	0.00  uid=0042
    2012-01-05	14:12:30	BRST	pause	stream	INFO	200	sample.mp4	66.804   uid=0042
    In the log line above I can see which user 0042 watch the video file sample.mp4 by 66.804 seconds

    But when WOWZA logs the Live Stream is a really mess.
    2012-01-06	14:48:26	BRST	comment	server	INFO	200	-	ServerListenerStreamPublisher PlayList Item Start: mp4:bx.mp4
    2012-01-06	14:49:15	BRST	play	stream	INFO	200	Stream1	-	_defaultVHost_	live	_definst_	0.298	uid=0042
    2012-01-06	14:49:29	BRST	stop	stream	INFO	200	Stream1	-	_defaultVHost_	live	_definst_	14.021	uid=0042
    In the first line WOWZA inform to me which Stream1 starts and which video bx.mp4 are playing. in follows lines we can see the events of user.

    The perfect world should be something like that
    2012-01-06	14:48:26	BRST	comment	server	INFO	200	-	ServerListenerStreamPublisher PlayList Item Start: mp4:bx.mp4
    2012-01-06	14:49:15	BRST	play	stream	INFO	200	Stream1	-	_defaultVHost_	live/bx.mp4	_definst_	0.298	uid=0042
    2012-01-06	14:49:29	BRST	stop	stream	INFO	200	Stream1	-	_defaultVHost_	live/bx.mp4	_definst_	14.021	uid=0042
    In this way I will need parse just one line to do the control. here we can see this live/bx.mp4. I need something like that, not exactly. I just need check the file which user are watching.

    If you have any questions you can ask to me and I can clarify a little bit more.

  5. #5
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    Take a look at IMediaStreamActionNotify3 interface:

    http://www.wowza.com/forums/content....-of-codec-info

    Richard

  6. #6
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    This is a way to hook into stream events for each client, so you can do more customized data collection. You might use a database to store or file. Also take a look at the IOPerformanceCounter which you can get from IMediaStream and IClient instances.

    Richard

  7. #7
    Join Date
    Jan 2012
    Posts
    15

    Post

    Hi Richard. Thanks for the tip, in a near future we would use this for sure.

    But I'm not sure if this approach is the best one. I don't need create a full customized log, I would like work with the standard WOWZA log, and not create a new log system.

    What I just need is put one more line for each new item was started by live stream with the xname-query attached with this line. There is a another way?

  8. #8
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    You can add fields with ILogNotify, and you can add rows with getLogger() statements, and you can add standard fields that are not included in the default Access appender. The superset of standard log fields is documented in /conf/Log4j.properties file. The user guide includes a Logging chapter with info on Events and Categories.

    Richard

  9. #9
    Join Date
    Jan 2012
    Posts
    15

    Default

    Thanks Richard.

    By this time I'm developed a script to read the standard WOWZA log and retrieve all the information what I need.

  10. #10
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    Cool. Thanks for the update

    Richard

Page 1 of 2 12 LastLast

Similar Threads

  1. Adding a custom log file and custom log fields.
    By arkroan in forum Server Administration Discussion
    Replies: 17
    Last Post: 01-28-2014, 05:59 AM
  2. Unusual log entries, possible RTMP dumping application?
    By apochr in forum Server Administration Discussion
    Replies: 3
    Last Post: 06-29-2013, 01:27 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
  •