# Logs keep accumulating

**URL:** <https://forum.inductiveautomation.com/t/logs-keep-accumulating/3223>\
**Category:** Ignition\
**Created:** [August 25, 2011, 11:04pm UTC](https://forum.inductiveautomation.com/t/logs-keep-accumulating/3223 "2011-08-25T23:04:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [August 25, 2011, 11:04pm UTC](https://forum.inductiveautomation.com/t/logs-keep-accumulating/3223/1 "2011-08-25T23:04:30Z")

</div>

our server is starting to run low on hard drive space. I have found that the log folder in the ignition directory is over 5 GB. How do you set the gateway to automatically purge the logs once a certain size is reached? is it ok to delete all the logs prior to todays date?

is see logs starting from Gateway.log.html.2011-07-06

I am running version 7.2.8

Thank you,

---

<div class="post-metadata">

**Author:** ![Robert.McKenzie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert.mckenzie/32/4134_2.png) [@Robert.McKenzie](https://forum.inductiveautomation.com/u/Robert.McKenzie)\
**Post date:** [August 25, 2011, 11:29pm UTC](https://forum.inductiveautomation.com/t/logs-keep-accumulating/3223/2 "2011-08-25T23:29:26Z")

</div>

Yes, you can stop those files from being created by modifying the log4j.properties file in /Ignition/contexts/main. Just remove/comment out the lines in the block that has “log4j.appender.FileAppender.layout…” and remove the “FileAppender,” variable of the “log4j.rootLogger=…” line.

There are other, better behaved logs so you can remove these html files without effecting anything.
