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.


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

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

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


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