# How exlude particular index from ilm policy

**URL:** https://discuss.elastic.co/t/how-exlude-particular-index-from-ilm-policy/345792
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [October 26, 2023, 9:43am UTC](https://discuss.elastic.co/t/how-exlude-particular-index-from-ilm-policy/345792 "2023-10-26T09:43:54Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Ekta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ekta/32/55987_2.png) [@Ekta](https://discuss.elastic.co/u/Ekta)
#### Post date: [October 26, 2023, 9:43am UTC](https://discuss.elastic.co/t/how-exlude-particular-index-from-ilm-policy/345792/1 "2023-10-26T09:43:54Z")

</div>

Hi,

OS : 22.04 linux  
ES version: 7.17.0

I have created ilm policy like delete all indexes after 45 days. I am using \* in policy. but I want to exclude particular index pattern which is not deleted or ilm policy is not apply.

means exclude one index pattern from ilm policy

how can I do it?

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [October 27, 2023, 2:28pm UTC](https://discuss.elastic.co/t/how-exlude-particular-index-from-ilm-policy/345792/2 "2023-10-27T14:28:07Z")

</div>

Moving this to the Elasticsearch topic

Have you tried to remove the policy from the actual index you want to skip?

> **[Remove policy from index API | Elasticsearch Guide \[8.10\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-policy.html)**

---

<div class="post-metadata">

### Author: ![Ekta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ekta/32/55987_2.png) [@Ekta](https://discuss.elastic.co/u/Ekta)
#### Post date: [October 30, 2023, 12:02am UTC](https://discuss.elastic.co/t/how-exlude-particular-index-from-ilm-policy/345792/3 "2023-10-30T00:02:07Z")

</div>

@jsanz I tried this also but when the new index created it came up with the default ILM policy

---

<div class="post-metadata">

### Author: ![Ekta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ekta/32/55987_2.png) [@Ekta](https://discuss.elastic.co/u/Ekta)
#### Post date: [October 30, 2023, 12:26pm UTC](https://discuss.elastic.co/t/how-exlude-particular-index-from-ilm-policy/345792/4 "2023-10-30T12:26:19Z")

</div>

@jsanz can you please let me how many max days I can use in min\_age or in policy?

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [October 30, 2023, 2:15pm UTC](https://discuss.elastic.co/t/how-exlude-particular-index-from-ilm-policy/345792/5 "2023-10-30T14:15:55Z")

</div>

> [@Ekta](#):
>
> @jsanz I tried this also but when the new index created it came up with the default ILM policy

Yeah sure, new indices will follow your default policy. To prevent this, obviously, you need to update your default policy to be more specific.

> [@Ekta](#):
>
> @jsanz can you please let me how many max days I can use in min\_age or in policy?

I'm afraid I can't find the documentation for that 😕 . I'd suggest to open a new topic here in the `Elasticsearch` forum.

---

<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 27, 2023, 2:16pm UTC](https://discuss.elastic.co/t/how-exlude-particular-index-from-ilm-policy/345792/6 "2023-11-27T14:16:18Z")

</div>

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