# How can I obtain a list of indices in ILM lifecycle error state

**URL:** <https://discuss.elastic.co/t/how-can-i-obtain-a-list-of-indices-in-ilm-lifecycle-error-state/204027>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [October 17, 2019, 10:43am UTC](https://discuss.elastic.co/t/how-can-i-obtain-a-list-of-indices-in-ilm-lifecycle-error-state/204027 "2019-10-17T10:43:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruce289](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@bruce289](https://discuss.elastic.co/u/bruce289)\
**Post date:** [October 17, 2019, 10:43am UTC](https://discuss.elastic.co/t/how-can-i-obtain-a-list-of-indices-in-ilm-lifecycle-error-state/204027/1 "2019-10-17T10:43:26Z")

</div>

Is there any way to get a list of indices that currently have lifecycle errors? I'm trying to setup a watcher job that will send a notification based on whether there are any such indices.

Thanks.

---

<div class="post-metadata">

**Author:** ![juka](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@juka](https://discuss.elastic.co/u/juka)\
**Post date:** [October 17, 2019, 11:25am UTC](https://discuss.elastic.co/t/how-can-i-obtain-a-list-of-indices-in-ilm-lifecycle-error-state/204027/2 "2019-10-17T11:25:39Z")

</div>

Hey,  
the indices which have errors should show up in Kibana in the Indexmanagement section

[https://www.elastic.co/guide/en/kibana/current/managing-indices.html](https://www.elastic.co/guide/en/kibana/current/managing-indices.html)

You should also be able to query managed indices via ILM, to get only the ones in error state

[https://www.elastic.co/guide/en/elasticsearch/reference/7.4/ilm-explain-lifecycle.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/ilm-explain-lifecycle.html)

---

<div class="post-metadata">

**Author:** ![bruce289](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@bruce289](https://discuss.elastic.co/u/bruce289)\
**Post date:** [October 17, 2019, 2:06pm UTC](https://discuss.elastic.co/t/how-can-i-obtain-a-list-of-indices-in-ilm-lifecycle-error-state/204027/3 "2019-10-17T14:06:31Z")

</div>

> [@juka](#):
>
> the indices which have errors should show up in Kibana in the Indexmanagement section

Thanks, Jürgen. However, the idea is to have this be an automated Watcher notification rather than needing to check Kibana

> [@juka](#):
>
> You should also be able to query managed indices via ILM, to get only the ones in error state

Unfortunately, it looks like the `only_errors` request parameter only became available in 7.4 (we're running 6.7). I'll try and see if I can get something to work by querying:

`GET _all/_ilm/explain`

Thanks.

---

<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 14, 2019, 2:06pm UTC](https://discuss.elastic.co/t/how-can-i-obtain-a-list-of-indices-in-ilm-lifecycle-error-state/204027/4 "2019-11-14T14:06:41Z")

</div>

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