# How can the event logging be disabled?

**URL:** <https://discourse.sensu.io/t/how-can-the-event-logging-be-disabled/1460>\
**Category:** Sensu Go\
**Created:** [November 26, 2019, 8:45pm UTC](https://discourse.sensu.io/t/how-can-the-event-logging-be-disabled/1460 "2019-11-26T20:45:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkobel](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@mkobel](https://discourse.sensu.io/u/mkobel)\
**Post date:** [November 26, 2019, 8:45pm UTC](https://discourse.sensu.io/t/how-can-the-event-logging-be-disabled/1460/1 "2019-11-26T20:45:17Z")

</div>

How can I disable the logging to /var/log/sensu/events.log?

I could only find the options to set the file path/name and the buffer size in the documentation [https://docs.sensuapp.org/sensu-go/5.15/reference/backend/#event-logging](https://docs.sensuapp.org/sensu-go/5.15/reference/backend/#event-logging)

I’m using sensu-go-backend 5.15.0-7782 on Debian 10.

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [November 26, 2019, 8:50pm UTC](https://discourse.sensu.io/t/how-can-the-event-logging-be-disabled/1460/2 "2019-11-26T20:50:30Z")

</div>

Hey!  
Event logging is disabled until you specify the event log file to use. To disable logging after you added the config file attribute, just comment out the line in the config file and restart the sensu-backend service

---

<div class="post-metadata">

**Author:** ![mkobel](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@mkobel](https://discourse.sensu.io/u/mkobel)\
**Post date:** [November 26, 2019, 8:54pm UTC](https://discourse.sensu.io/t/how-can-the-event-logging-be-disabled/1460/3 "2019-11-26T20:54:12Z")

</div>

Thank you very much! Removing the config entry works as described.
