# Disable LOG-Files in data

**URL:** <https://community.hivemq.com/t/disable-log-files-in-data/182>\
**Category:** HiveMQ Community Edition\
**Created:** [March 13, 2020, 3:54pm UTC](https://community.hivemq.com/t/disable-log-files-in-data/182 "2020-03-13T15:54:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![john.work](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@john.work](https://community.hivemq.com/u/john.work)\
**Post date:** [March 13, 2020, 3:54pm UTC](https://community.hivemq.com/t/disable-log-files-in-data/182/1 "2020-03-13T15:54:45Z")

</div>

With the HiveMQ CE 2020.2, in the directories “data/publish\_payload\_store/_/_” and “data/retained\_messages/_/_” log files of the form “LOG” or “LOG.old.\<timestamp?\>” are written like

2020/03/12-10:37:30.675432 343c RocksDB version: 6.5.2  
2020/03/12-10:37:30.675562 343c Git sha rocksdb\_build\_git\_sha:@2498478d3f280372547d1272c785642ecfec6122@  
2020/03/12-10:37:30.675603 343c Compile date Dec 30 2019  
2020/03/12-10:37:30.675635 343c DB SUMMARY  
2020/03/12-10:37:30.678071 343c CURRENT file: CURRENT  
2020/03/12-10:37:30.678124 343c IDENTITY file: IDENTITY  
…

How can I disable the writing of log files?

---

<div class="post-metadata">

**Author:** ![hivemq-support](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/hivemq-support/32/357_2.png) [@hivemq-support](https://community.hivemq.com/u/hivemq-support)\
**Post date:** [April 8, 2020, 6:29pm UTC](https://community.hivemq.com/t/disable-log-files-in-data/182/2 "2020-04-08T18:29:26Z")

</div>

Hi @john.work,

Nice to see your interest in the HiveMQ Community Editions.  
These files are part of the file persistence and are necessary.  
You cannot prevent them from being created.

Kind regards,  
Florian

---

<div class="post-metadata">

**Author:** ![Cammy](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/cammy/32/82_2.png) [@Cammy](https://community.hivemq.com/u/Cammy)\
**Post date:** [August 31, 2020, 6:52pm UTC](https://community.hivemq.com/t/disable-log-files-in-data/182/3 "2020-08-31T18:52:19Z")

</div>

I understand these files are necessary. Unfortunately the files `LOG.old.<timestamp>` consume more than 20 GB disk space in `publish_payload_store` and `retained_messages` together with the former being bigger.

Is there a way to limit disk space usage? In my case there are 128 folders going from `publish_payload_store_0` to `_63` and `retained_messages_0` to `_63`.

Any comment would be appreciated. And tell me if I need to provide more information. Like checking for the file dates nothing seems to be older than 4 days.

---

<div class="post-metadata">

**Author:** ![BeSeWe](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@BeSeWe](https://community.hivemq.com/u/BeSeWe)\
**Post date:** [September 7, 2020, 7:34am UTC](https://community.hivemq.com/t/disable-log-files-in-data/182/4 "2020-09-07T07:34:52Z")

</div>

Hi,

I have the same problem. Is there any solution to minimize the LOG file?  
Thanks,

Benjamin

---

<div class="post-metadata">

**Author:** ![jonathan.robert](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jonathan.robert](https://community.hivemq.com/u/jonathan.robert)\
**Post date:** [September 21, 2020, 12:43pm UTC](https://community.hivemq.com/t/disable-log-files-in-data/182/5 "2020-09-21T12:43:11Z")

</div>

The size of the data folder is really impressive. A few days afeter startup we are at 22Gb. The number of messages exchanged is always the same and the number of retained messages is always the same. How can we fix that ?

---

<div class="post-metadata">

**Author:** ![michael\_w](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/michael_w/32/200_2.png) [@michael\_w](https://community.hivemq.com/u/michael_w)\
**Post date:** [September 21, 2020, 12:54pm UTC](https://community.hivemq.com/t/disable-log-files-in-data/182/6 "2020-09-21T12:54:18Z")

</div>

Hello everyone,

a little heads up, you can track this issue [https://github.com/hivemq/hivemq-community-edition/issues/183](https://github.com/hivemq/hivemq-community-edition/issues/183).  
We have this on our board and we expect to start working on this issue soon.

Greetings,  
Michael from the HiveMQ team

---

<div class="post-metadata">

**Author:** ![michael\_w](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/michael_w/32/200_2.png) [@michael\_w](https://community.hivemq.com/u/michael_w)\
**Post date:** [October 1, 2020, 3:24pm UTC](https://community.hivemq.com/t/disable-log-files-in-data/182/7 "2020-10-01T15:24:31Z")

</div>

Hello everyone,

the issue is fixed. The fix will be part of the upcoming releases.

CE: If you can’t wait until the next release you could [build a custom version](https://github.com/hivemq/hivemq-community-edition#building-from-source).

Greetings,  
Michael

---

<div class="post-metadata">

**Author:** ![Cammy](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/cammy/32/82_2.png) [@Cammy](https://community.hivemq.com/u/Cammy)\
**Post date:** [October 1, 2020, 8:19pm UTC](https://community.hivemq.com/t/disable-log-files-in-data/182/8 "2020-10-01T20:19:33Z")

</div>

Thank you guys. Improvements look great 🙂

---

<div class="post-metadata">

**Author:** ![chke](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@chke](https://community.hivemq.com/u/chke)\
**Post date:** [November 16, 2020, 11:01am UTC](https://community.hivemq.com/t/disable-log-files-in-data/182/9 "2020-11-16T11:01:23Z")

</div>

Hi,  
Thanks for fixing this bug.  
Any news on this when there will be a new HiveMQ CE release containing this fix?  
Nightly works great, but we would like to stay on the release versions.

Kind regards,  
Christoph

---

<div class="post-metadata">

**Author:** ![michael\_w](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/michael_w/32/200_2.png) [@michael\_w](https://community.hivemq.com/u/michael_w)\
**Post date:** [November 17, 2020, 3:19pm UTC](https://community.hivemq.com/t/disable-log-files-in-data/182/10 "2020-11-17T15:19:28Z")

</div>

Hi Christoph,

we released the new version today.

> **[HiveMQ Community Edition 2020.6 is released](https://www.hivemq.com/blog/hivemq-ce-2020-6-released/)**

Kind regards,  
Michael from the HiveMQ team
