# How do I enable API logging? (RequestLoggingFilter)

**URL:** <https://community.wowza.com/t/how-do-i-enable-api-logging-requestloggingfilter/53295>\
**Category:** Wowza Streaming Engine\
**Created:** [May 5, 2019, 2:33am UTC](https://community.wowza.com/t/how-do-i-enable-api-logging-requestloggingfilter/53295 "2019-05-05T02:33:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angelo\_Hongens](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/angelo_hongens/32/1261_2.png) [@Angelo\_Hongens](https://community.wowza.com/u/Angelo_Hongens)\
**Post date:** [May 5, 2019, 2:33am UTC](https://community.wowza.com/t/how-do-i-enable-api-logging-requestloggingfilter/53295/1 "2019-05-05T02:33:16Z")

</div>

Hi,

I’m using WSE (bundled with Cast-Control’s MediaCP product), and it is issuing API calls to manage services. In order to debug some stuff, I would like the management api, running on tcp port 8087, to log requests to an access log file.

It looks like the logging is configured in the config file \*\*/usr/local/WowzaStreamingEngine/manager/conf/\*\ ***log4j.properties** and it looks like it’s all configured to log access requests to **/usr/local/WowzaStreamingEngine/manager/logs/wmsmanager\_access.log**. That logfile says:

```auto
2019-05-0304:14:01CESTINFOcom.wowza.wms.server.ManagerConfigurationLoading configuration from /usr/local/WowzaStreamingEngine/manager/conf/Manager.xml: 
2019-05-0304:14:01CESTINFOcom.wowza.wms.webapp.RequestLoggingFilterRequestLoggingFilter disabled, no HTTP requests will be logged: 

```

And after that it is empty. I want to see those http requests!

So it looks like somehow by default the requestlogging is disabled, but I have no idea how to enable it. The Manager.xml contains some almost empty xml leaves, but nothing that looks like what I am looking for.

Who can help me out here?

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [May 6, 2019, 4:52pm UTC](https://community.wowza.com/t/how-do-i-enable-api-logging-requestloggingfilter/53295/2 "2019-05-06T16:52:18Z")

</div>

Hi @Angelo Hongens thanks for reaching out. Here is the document that covers the basic options for enabling and disabling different logging fields, events, and categories. Scroll down to page 84 of the Engine User Guide for examples:

[https://www.wowza.com/resources/WowzaStreamingEngine\_UsersGuide.pdf](https://www.wowza.com/resources/WowzaStreamingEngine_UsersGuide.pdf)

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [May 6, 2019, 4:59pm UTC](https://community.wowza.com/t/how-do-i-enable-api-logging-requestloggingfilter/53295/3 "2019-05-06T16:59:42Z")

</div>

Here is an example @Angelo Hongens of you could make an API request to view logs:

Because the file is in a subfolder of the main logs folder, you will need to url encode the path to the file.

```auto
_defaultVHost_%2Fapplication1%2Fwowzastreamingengine_access.log

```

So the complete request url (minus the query params) would look like this,

```auto
http://localhost:8087/v2/servers/_defaultServer_/logfiles/_defaultVHost_%2Fapplication1%2Fwowzastreamingengine_access.log

```

---

<div class="post-metadata">

**Author:** ![Angelo\_Hongens](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/angelo_hongens/32/1261_2.png) [@Angelo\_Hongens](https://community.wowza.com/u/Angelo_Hongens)\
**Post date:** [May 6, 2019, 8:12pm UTC](https://community.wowza.com/t/how-do-i-enable-api-logging-requestloggingfilter/53295/4 "2019-05-06T20:12:44Z")

</div>

@Rose Power, thank you for your answer! However, I am not looking for API access to log files, I am looking for log files for the API!

Everything you mention in the manual is in place, and api access logging is configured. However, in that access log it says some module (RequestLoggingFilter) is preventing further requests from being logged.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [May 6, 2019, 8:57pm UTC](https://community.wowza.com/t/how-do-i-enable-api-logging-requestloggingfilter/53295/5 "2019-05-06T20:57:41Z")

</div>

Oh sorry about that, I had it backwards. Ok, I’ll be right back- let me check with the engineers.

---

<div class="post-metadata">

**Author:** ![Angelo\_Hongens](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/angelo_hongens/32/1261_2.png) [@Angelo\_Hongens](https://community.wowza.com/u/Angelo_Hongens)\
**Post date:** [May 15, 2019, 3:24am UTC](https://community.wowza.com/t/how-do-i-enable-api-logging-requestloggingfilter/53295/6 "2019-05-15T03:24:03Z")

</div>

No news anyone?

---

<div class="post-metadata">

**Author:** ![Angelo\_Hongens](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/angelo_hongens/32/1261_2.png) [@Angelo\_Hongens](https://community.wowza.com/u/Angelo_Hongens)\
**Post date:** [June 18, 2019, 1:42am UTC](https://community.wowza.com/t/how-do-i-enable-api-logging-requestloggingfilter/53295/7 "2019-06-18T01:42:55Z")

</div>

Rose, did you happen to find a dev with some time to look into this? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [June 18, 2019, 3:41pm UTC](https://community.wowza.com/t/how-do-i-enable-api-logging-requestloggingfilter/53295/8 "2019-06-18T15:41:22Z")

</div>

Hello @Angelo Hongens, my sincere apologies for us dropping the ball on this. I had asked tech support for an answer and it didn’t happen obviously. Truly sorry to leave you waiting!

I followed up and the answer I was given by our engineer is:

in the Server.xml in the REST section, then properties add

```auto
<Property>
   <Name>debugEnable</Name>
     <Value>true</Value>
</Property>

```

it will then log each time a REST call is made.

Does this help you?
