# Custom Logging

**URL:** <https://community.wowza.com/t/custom-logging/42055>\
**Category:** Wowza Streaming Engine\
**Created:** [March 27, 2014, 12:20am UTC](https://community.wowza.com/t/custom-logging/42055 "2014-03-27T00:20:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenji\_magto](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@kenji\_magto](https://community.wowza.com/u/kenji_magto)\
**Post date:** [March 27, 2014, 12:20am UTC](https://community.wowza.com/t/custom-logging/42055/1 "2014-03-27T00:20:38Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [March 27, 2014, 11:41am UTC](https://community.wowza.com/t/custom-logging/42055/2 "2014-03-27T11:41:12Z")

</div>

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-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-configure-log-rolling-by-time-and-size)

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

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [March 27, 2014, 5:42pm UTC](https://community.wowza.com/t/custom-logging/42055/3 "2014-03-27T17:42:16Z")

</div>

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

```auto
log4j.appender.serverStats.layout.CategoryInclude=session

```

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [March 28, 2014, 2:09pm UTC](https://community.wowza.com/t/custom-logging/42055/4 "2014-03-28T14:09:34Z")

</div>

Cool! Thanks for the update.

Richard

---

<div class="post-metadata">

**Author:** ![kenji\_magto](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@kenji\_magto](https://community.wowza.com/u/kenji_magto)\
**Post date:** [March 27, 2014, 6:19am UTC](https://community.wowza.com/t/custom-logging/42055/5 "2014-03-27T06:19:50Z")

</div>

Hello Richard,

Thanks for your reply , i find it very helpful :D, 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,

---

<div class="post-metadata">

**Author:** ![kenji\_magto](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@kenji\_magto](https://community.wowza.com/u/kenji_magto)\
**Post date:** [March 27, 2014, 8:36am UTC](https://community.wowza.com/t/custom-logging/42055/6 "2014-03-27T08:36:00Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![kenji\_magto](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@kenji\_magto](https://community.wowza.com/u/kenji_magto)\
**Post date:** [March 28, 2014, 12:47am UTC](https://community.wowza.com/t/custom-logging/42055/7 "2014-03-28T00:47:57Z")

</div>

SOLVED!

Thanks a lot 😃 😃
