# Index Life cycle policy

**URL:** <https://discuss.elastic.co/t/index-life-cycle-policy/185541>\
**Category:** Kibana\
**Tags:** ilm-index-lifecycle-management\
**Created:** [June 13, 2019, 5:22am UTC](https://discuss.elastic.co/t/index-life-cycle-policy/185541 "2019-06-13T05:22:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [June 13, 2019, 5:22am UTC](https://discuss.elastic.co/t/index-life-cycle-policy/185541/1 "2019-06-13T05:22:57Z")

</div>

Hello Team,

I want to apply index life cycle policy on my indices. My index name is `filebeat-*`. I have created life cycle policies that i need to delete indices which are older then 10 days. But when i am trying to attache index with this policy my index `filebeat-*` is not listed there.  
My index is using timestamp so indices are created on the basis of date. One for each day.  
Please refer the below screenshot:

![Selection_035](https://us1.discourse-cdn.com/elastic/original/3X/c/b/cb596bdbbdfa5cb15ef0fc7631d3433b7750e530.png)

Can you please help me how we can see our index in this list so i can add that index into policy?

Thanks.

---

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [June 14, 2019, 4:21am UTC](https://discuss.elastic.co/t/index-life-cycle-policy/185541/2 "2019-06-14T04:21:13Z")

</div>

Hello Team,

Can you please help me on above issue?

Thanks

---

<div class="post-metadata">

**Author:** ![NerdSec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerdsec/32/22056_2.png) [@NerdSec](https://discuss.elastic.co/u/NerdSec)\
**Post date:** [June 17, 2019, 9:39am UTC](https://discuss.elastic.co/t/index-life-cycle-policy/185541/3 "2019-06-17T09:39:58Z")

</div>

You cannot apply the policy directly to an index.

You can only apply it to an index template. Have you created any index templates? If not, then you might have to create a template first, define the pattern for which the template should be used and then go from there.

[https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.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 15, 2019, 9:40am UTC](https://discuss.elastic.co/t/index-life-cycle-policy/185541/4 "2019-07-15T09:40:11Z")

</div>

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