# Configure retention period for different index

**URL:** <https://discuss.elastic.co/t/configure-retention-period-for-different-index/106491>\
**Category:** Elasticsearch\
**Created:** [November 6, 2017, 9:13am UTC](https://discuss.elastic.co/t/configure-retention-period-for-different-index/106491 "2017-11-06T09:13:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![YaroslavN](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@YaroslavN](https://discuss.elastic.co/u/YaroslavN)\
**Post date:** [November 6, 2017, 9:13am UTC](https://discuss.elastic.co/t/configure-retention-period-for-different-index/106491/1 "2017-11-06T09:13:19Z")

</div>

Hi,

Could we set up different retention policies for indices in ElasticClooud? For example: index\_A should auto-deleted after 7 days, index\_B should be deleted after 10 days, etc.

Thank you.

---

<div class="post-metadata">

**Author:** ![zanbel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zanbel/32/20678_2.png) [@zanbel](https://discuss.elastic.co/u/zanbel)\
**Post date:** [November 6, 2017, 1:26pm UTC](https://discuss.elastic.co/t/configure-retention-period-for-different-index/106491/2 "2017-11-06T13:26:41Z")

</div>

Hi @YaroslavN,

Thank you for your feedback!  
We currently do not support a way to control the indices life cycle from within Elastic Cloud. You can use the [Curator](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html) in order to enforce retention policies, and manage your Elasticsearch indices.  
This request does make sense and we do plan to support life cycle management more natively in Elasticsearch in the future. This, in turn, will enable you to implement this configured using Elastic Cloud.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![YaroslavN](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@YaroslavN](https://discuss.elastic.co/u/YaroslavN)\
**Post date:** [November 7, 2017, 8:42am UTC](https://discuss.elastic.co/t/configure-retention-period-for-different-index/106491/3 "2017-11-07T08:42:23Z")

</div>

Hi Roy,

Thank you for feedback. Could I cover this through dev panel in Kibana and execute something like

`DELETE /*-logs where day creation greater than one month`

Thank you.

---

<div class="post-metadata">

**Author:** ![zanbel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zanbel/32/20678_2.png) [@zanbel](https://discuss.elastic.co/u/zanbel)\
**Post date:** [November 7, 2017, 5:10pm UTC](https://discuss.elastic.co/t/configure-retention-period-for-different-index/106491/4 "2017-11-07T17:10:26Z")

</div>

Hey @YaroslavN,

This sounds like a perfect match for curator. You can use the following [page](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/delete_indices.html) as a reference on how you should go about deleting indics using curator and here is a delete indics [example](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/ex_delete_indices.html). You can check out the Elasticsearch discuss channel there are more examples there.

Hope this will provide a good solution for your use case.

Also please raise future issues via support [Now Live! New Elastic Cloud Standard Support](https://discuss.elastic.co/t/now-live-new-elastic-cloud-standard-support/84161).  
This channel is dedicated to Elastic Cloud Enterprise, which is a different product.

BR,  
Roy.

---

<div class="post-metadata">

**Author:** ![YaroslavN](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@YaroslavN](https://discuss.elastic.co/u/YaroslavN)\
**Post date:** [November 9, 2017, 7:25am UTC](https://discuss.elastic.co/t/configure-retention-period-for-different-index/106491/5 "2017-11-09T07:25:58Z")

</div>

Hi Roy,

Thank you.

---

<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:** [November 23, 2017, 7:26am UTC](https://discuss.elastic.co/t/configure-retention-period-for-different-index/106491/6 "2017-11-23T07:26:02Z")

</div>

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