# Index Lifecycle Management rollover on time, but deleting every 10min

**URL:** https://discuss.elastic.co/t/index-lifecycle-management-rollover-on-time-but-deleting-every-10min/237005
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [June 14, 2020, 12:25am UTC](https://discuss.elastic.co/t/index-lifecycle-management-rollover-on-time-but-deleting-every-10min/237005 "2020-06-14T00:25:45Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jbalaguero](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jbalaguero](https://discuss.elastic.co/u/jbalaguero)
#### Post date: [June 14, 2020, 12:25am UTC](https://discuss.elastic.co/t/index-lifecycle-management-rollover-on-time-but-deleting-every-10min/237005/1 "2020-06-14T00:25:45Z")

</div>

Hello,

We have this setting in our elasticsearch.yml configuration file:  
indices.lifecycle.poll\_interval: 30s

And we have a set of indexes that must roll over every 3 minutes and must be alive for 6 minutes.  
The rollover is happennig on time, but the deletion only occurs exactly every 10min.

For example:  
01:52:30: index idx-000001 created  
01:55:55: index idx-000002 created  
01:59:25: index idx-000003 created  
02:02:30: index idx-000001 deleted

So it seems the 'indices.lifecycle.poll\_interval' setting correctly informs about rollover actions every 30s, but not about delete actions (that is taking 10min, the setting default value).

Is this possible? Must I set up another setting for delete actions? Or am I doing something wrong?

Thanks,

Joan.

---

<div class="post-metadata">

### Author: ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)
#### Post date: [June 15, 2020, 3:34pm UTC](https://discuss.elastic.co/t/index-lifecycle-management-rollover-on-time-but-deleting-every-10min/237005/2 "2020-06-15T15:34:22Z")

</div>

> [@jbalaguero](#):
>
> roll over every 3 minutes and must be alive for 6 minutes

Can you share your actual policy? It's a little harder to parse from this sentence, but I suspect that you have a `min_age` of 6 minutes in your `delete` phase, which means that it will be deleted 6 minutes _after_ the rollover has been performed (so 3 + 6 = ~9 minutes total lifetime)

---

<div class="post-metadata">

### Author: ![jbalaguero](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jbalaguero](https://discuss.elastic.co/u/jbalaguero)
#### Post date: [June 15, 2020, 5:53pm UTC](https://discuss.elastic.co/t/index-lifecycle-management-rollover-on-time-but-deleting-every-10min/237005/3 "2020-06-15T17:53:16Z")

</div>

Hi dakrone,

Yes, you are right. That's the point, deletion takes rollover as initial point and not the index creation.

I need to delete indexes taking the index creation as a base. So I have decided to delete them manually. I understand that deleting indexes manually does not interfiere in the ILM.

Thanks,

Joan.

---

<div class="post-metadata">

### Author: ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)
#### Post date: [June 15, 2020, 6:14pm UTC](https://discuss.elastic.co/t/index-lifecycle-management-rollover-on-time-but-deleting-every-10min/237005/4 "2020-06-15T18:14:27Z")

</div>

> [@jbalaguero](#):
>
> I need to delete indexes taking the index creation as a base.

You can do this by setting the origination date for the index, which is the date used for _any_ ILM action, see: [Index lifecycle management settings in Elasticsearch | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-settings.html#_index_level_settings) (the setting is called `index.lifecycle.origination_date`)

---

<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 13, 2020, 6:25pm UTC](https://discuss.elastic.co/t/index-lifecycle-management-rollover-on-time-but-deleting-every-10min/237005/5 "2020-07-13T18:25:35Z")

</div>

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