# Gateway MQTT Logs Cleanup?

**URL:** <https://forum.inductiveautomation.com/t/gateway-mqtt-logs-cleanup/74959>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [June 13, 2023, 2:13pm UTC](https://forum.inductiveautomation.com/t/gateway-mqtt-logs-cleanup/74959 "2023-06-13T14:13:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skylar\_Sabo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/skylar_sabo/32/42622_2.png) [@Skylar\_Sabo](https://forum.inductiveautomation.com/u/Skylar_Sabo)\
**Post date:** [June 13, 2023, 2:13pm UTC](https://forum.inductiveautomation.com/t/gateway-mqtt-logs-cleanup/74959/1 "2023-06-13T14:13:15Z")

</div>

Good Morning Ignition Community,

While MQTT is undoubtedly a valuable protocol for our automation needs, its extensive logging is proving to be a hindrance when it comes to troubleshooting and analyzing system performance beyond a single day. As a result, we're struggling to identify and address issues that might have occurred in the past, limiting our ability to fine-tune and optimize our automation processes.

Is there a way to configure ignition to log mqtt messages separately or even disable mqtt logging (we would like to keep the errors just disable the publishing logs)?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/b/3bfedbc5f5bfba5e4d107439e7a323d4206da8ce.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 13, 2023, 3:31pm UTC](https://forum.inductiveautomation.com/t/gateway-mqtt-logs-cleanup/74959/2 "2023-06-13T15:31:25Z")

</div>

This is something to take up with Cirruslink, probably on their community forum.

If you want to _quiet_ the logs, you can set the 'logging level' for any particular logger higher than INFO in the gateway UI, or persistently via the `logback.xml` file in the data directory. Then only warnings or errors will be logged to the rest of the system.

---

<div class="post-metadata">

**Author:** ![Skylar\_Sabo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/skylar_sabo/32/42622_2.png) [@Skylar\_Sabo](https://forum.inductiveautomation.com/u/Skylar_Sabo)\
**Post date:** [June 13, 2023, 3:52pm UTC](https://forum.inductiveautomation.com/t/gateway-mqtt-logs-cleanup/74959/3 "2023-06-13T15:52:38Z")

</div>

Hey Griffith,

To confirm if I set the logging level to warn for EngineRPCImpl it would only show warnings / errors?  
Thanks for the quick reply.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/a/6ac389e4e8ba91ae6728b69f474e61ca98b6e8b9.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 13, 2023, 4:24pm UTC](https://forum.inductiveautomation.com/t/gateway-mqtt-logs-cleanup/74959/4 "2023-06-13T16:24:21Z")

</div>

Yes, that's correct. But that change will be lost whenever the gateway restarts, so `logback.xml` is the route if you want to make that logging level change permanently.

---

<div class="post-metadata">

**Author:** ![Andrew.Meronek](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@Andrew.Meronek](https://forum.inductiveautomation.com/u/Andrew.Meronek)\
**Post date:** [August 16, 2023, 6:44pm UTC](https://forum.inductiveautomation.com/t/gateway-mqtt-logs-cleanup/74959/5 "2023-08-16T18:44:15Z")

</div>

Where can we find info on modifying logback.xml for cases like this?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 16, 2023, 7:10pm UTC](https://forum.inductiveautomation.com/t/gateway-mqtt-logs-cleanup/74959/6 "2023-08-16T19:10:14Z")

</div>

[https://logback.qos.ch/manual/configuration.html#syntax](https://logback.qos.ch/manual/configuration.html#syntax)
