Get the the names of only the closed indices in a cluster using Kibana

I have looked up the Elastic docs, but have not found a clear answer yet.

One way to get the names of closed indices was using blocks data, but the indices section of the blocks data return closed indices along with some others indices without alias. The Elastic doc does not say anything about what blocks data is.

# Return only blocks data
$ curl -XGET 'http://localhost:9200/_cluster/state/blocks'

Is there a way to get the names of only the closed indices in a cluster?

I would suggest using the _cat api, like this

curl -XGET localhost:9200/_cat/indices | grep "close"
1 Like

Hi @dhondup

I can use _cat API together with command linux "grep"

curl localhost:9200/_cat/indices 2> /dev/null | grep close

1 Like

Thanks, @val and @Fram_Souza for the suggestions. I updated the title. I am wondering if there is a way to do it just from Kibana using _cat API, like how we can get a list of aliases the following way.

GET _cat/aliases

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