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

**URL:** <https://discuss.elastic.co/t/get-the-the-names-of-only-the-closed-indices-in-a-cluster-using-kibana/116696>\
**Category:** Elasticsearch\
**Created:** [January 23, 2018, 2:57pm UTC](https://discuss.elastic.co/t/get-the-the-names-of-only-the-closed-indices-in-a-cluster-using-kibana/116696 "2018-01-23T14:57:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhondup](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@dhondup](https://discuss.elastic.co/u/dhondup)\
**Post date:** [January 23, 2018, 2:57pm UTC](https://discuss.elastic.co/t/get-the-the-names-of-only-the-closed-indices-in-a-cluster-using-kibana/116696/1 "2018-01-23T14:57:46Z")

</div>

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](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/cluster-state.html), 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?

---

<div class="post-metadata">

**Author:** ![val](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/val/32/138203_2.png) [@val](https://discuss.elastic.co/u/val)\
**Post date:** [January 23, 2018, 3:16pm UTC](https://discuss.elastic.co/t/get-the-the-names-of-only-the-closed-indices-in-a-cluster-using-kibana/116696/2 "2018-01-23T15:16:10Z")

</div>

I would suggest using the `_cat` api, like this

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

---

<div class="post-metadata">

**Author:** ![Fram\_Souza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fram_souza/32/24833_2.png) [@Fram\_Souza](https://discuss.elastic.co/u/Fram_Souza)\
**Post date:** [January 23, 2018, 3:19pm UTC](https://discuss.elastic.co/t/get-the-the-names-of-only-the-closed-indices-in-a-cluster-using-kibana/116696/3 "2018-01-23T15:19:31Z")

</div>

Hi @dhondup

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

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

---

<div class="post-metadata">

**Author:** ![dhondup](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@dhondup](https://discuss.elastic.co/u/dhondup)\
**Post date:** [January 23, 2018, 3:25pm UTC](https://discuss.elastic.co/t/get-the-the-names-of-only-the-closed-indices-in-a-cluster-using-kibana/116696/4 "2018-01-23T15:25:52Z")

</div>

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`

---

<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:** [February 20, 2018, 3:26pm UTC](https://discuss.elastic.co/t/get-the-the-names-of-only-the-closed-indices-in-a-cluster-using-kibana/116696/5 "2018-02-20T15:26:14Z")

</div>

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