Wowza Community

Custom Logging

Hello i have few questions regardding wowza logging :slight_smile:

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 :slight_smile:

THANKS,

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:

https://www.wowza.com/docs/how-to-track-streaming-by-users

https://www.wowza.com/docs/how-to-configure-log-rolling-by-time-and-size

https://www.wowza.com/docs/how-to-use-sawmill-to-analyze-wowza-media-server-logs

Richard

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

Cool! Thanks for the update.

Richard

Hello Richard,

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

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 :smiley:

THANKS,

nevermind my previous question :slight_smile: ,

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? :slight_smile:

THANKS,

SOLVED!

Thanks a lot :smiley: :smiley: