# Is it possible to keep max 5GB for logs but to delete old continously?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-keep-max-5gb-for-logs-but-to-delete-old-continously/336832>\
**Category:** Kibana\
**Created:** [June 25, 2023, 7:33am UTC](https://discuss.elastic.co/t/is-it-possible-to-keep-max-5gb-for-logs-but-to-delete-old-continously/336832 "2023-06-25T07:33:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HannesWaser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hanneswaser/32/122680_2.png) [@HannesWaser](https://discuss.elastic.co/u/HannesWaser)\
**Post date:** [June 25, 2023, 7:33am UTC](https://discuss.elastic.co/t/is-it-possible-to-keep-max-5gb-for-logs-but-to-delete-old-continously/336832/1 "2023-06-25T07:33:29Z")

</div>

Dear all, I am a novice to Kibana. I made it run bit now I wonder how I can limit the storage kibana and elasticseach use for log data AND how I can delete old logs automatically so new ones can be added. The goal is to maintain const 5GB automatically of storage usage.

Thank you very much!

---

<div class="post-metadata">

**Author:** ![eMitch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emitch/32/93607_2.png) [@eMitch](https://discuss.elastic.co/u/eMitch)\
**Post date:** [June 26, 2023, 12:22am UTC](https://discuss.elastic.co/t/is-it-possible-to-keep-max-5gb-for-logs-but-to-delete-old-continously/336832/2 "2023-06-26T00:22:14Z")

</div>

Hey @HannesWaser and welcome to the community!

You will want to check out [Index Lifecycle Management](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-lifecycle-management.html) which will allow you to configure how much data to keep based on size or time.

[Check out these docs/tutorial.](https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-index-lifecycle-management.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 24, 2023, 12:22am UTC](https://discuss.elastic.co/t/is-it-possible-to-keep-max-5gb-for-logs-but-to-delete-old-continously/336832/3 "2023-07-24T00:22:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
