Results 1 to 7 of 7

Thread: Custom Logging

  1. #1

    Default Custom Logging

    Hello i have few questions regardding wowza logging

    first is it possible to create a custom log? if so

    i want to know how to do a log for streamers and their IP example streamer123 (stream key or stream id) then its IP, i want the output similar to this


    streamers123 ------ 192.168.1.1 ------ (date here regardless of format)


    and also i want to log the IP of the viewers of stream so my desired output is

    192.168.1.3 ------ (date here regardless of format)



    please help me with this


    THANKS,
    Last edited by kenji24; 03-27-2014 at 01:22 AM. Reason: clarify spacing

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

    Default

    Yes, you can customize the logs extensively by editing [wowza-install-dir]/conf/log4j.properties file. This file has a number of Appenders, some are commented out, and all can be changed in various ways, including re-arranging log fields, or adding (there is a superset of all available fields shown in the file) and including categories and excluding events. The file itself has many comments that you can study, and there is a logging chapter in the user guide with more info.

    Here is a some articles related to logging:

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

    http://www.wowza.com/forums/content....-time-and-size

    http://www.wowza.com/forums/content....ia-Server-logs

    Richard

  3. #3

    Thumbs up

    Hello Richard,

    Thanks for your reply , i find it very helpful , i got a few question

    how can i identify that a certain ip is from streamers and viewers?

    I think this fields are useful: date,time,x-ctx and c-ip but i cant figure out which is from streamers and viewers


    THANKS,

  4. #4

    Default

    nevermind my previous question ,

    I saw this on user guide:
    x-category - Log event category (server, vhost, application, session, stream)

    my question now is, is it possible to log only the "Session" x-category?

    THANKS,

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

    Default

    Yes, you will see examples of Appenders that use CategoryInclude, which excludes categories not listed, something like this:

    log4j.appender.serverStats.layout.CategoryInclude=session
    Richard

  6. #6

    Default

    SOLVED!

    Thanks a lot

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

    Default

    Cool! Thanks for the update.

    Richard

Similar Threads

  1. Logging custom module to a different file
    By maugzoide in forum General Forum
    Replies: 7
    Last Post: 10-03-2014, 10:52 AM
  2. Logging to a webservice via ILogNotify or a custom Module
    By seanngreen in forum General Forum
    Replies: 5
    Last Post: 02-12-2013, 05:45 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
  •