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

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.

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

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

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

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.

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