# log4j wowza 3.6

**URL:** https://community.wowza.com/t/log4j-wowza-3-6/40397
**Category:** Wowza Streaming Engine
**Created:** [April 24, 2014, 3:24pm UTC](https://community.wowza.com/t/log4j-wowza-3-6/40397 "2014-04-24T15:24:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jorge\_jorge](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@jorge\_jorge](https://community.wowza.com/u/jorge_jorge)
#### Post date: [April 24, 2014, 3:24pm UTC](https://community.wowza.com/t/log4j-wowza-3-6/40397/1 "2014-04-24T15:24:48Z")

</div>

Hi everybody and thanks in advance,

I’m trying to collect all wowza logs for any vhosts and then send to a single file or stdout and read it

We have four servers to distribute the load, so, we collect these logs in the four servers.

There is any way (log4j.properties) to include inside these logs the physical hostname??

Thanks in advance

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [April 29, 2014, 7:59am UTC](https://community.wowza.com/t/log4j-wowza-3-6/40397/2 "2014-04-29T07:59:57Z")

</div>

You can utilize our [ILogNotify](https://www.wowza.com/resources/WowzaMediaServer_ServerSideAPI.pdf) interface and handle the onLog event to add more information to the given log messages (grab the hostname and add it this way).

```auto
@Override
public void onLog(Level level, String comment, IMediaStream stream,
			String category, String event, int status, String context);

```

---

<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: [May 9, 2014, 12:33pm UTC](https://community.wowza.com/t/log4j-wowza-3-6/40397/3 "2014-05-09T12:33:23Z")

</div>

You could open each log file in Excel, add a column to identify the server in each file, then combine them.

Richard

---

<div class="post-metadata">

### Author: ![jorge\_jorge](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@jorge\_jorge](https://community.wowza.com/u/jorge_jorge)
#### Post date: [May 8, 2014, 5:40pm UTC](https://community.wowza.com/t/log4j-wowza-3-6/40397/4 "2014-05-08T17:40:16Z")

</div>

thanks for the answer matt\_y,

unfortunately i haven’t know about java.

there are not any different way??

thanks in advance
