# Find all indices belonging to box type hot

**URL:** <https://discuss.elastic.co/t/find-all-indices-belonging-to-box-type-hot/283415>\
**Category:** Elasticsearch\
**Created:** [September 6, 2021, 7:39am UTC](https://discuss.elastic.co/t/find-all-indices-belonging-to-box-type-hot/283415 "2021-09-06T07:39:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smlbiobot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smlbiobot/32/29622_2.png) [@smlbiobot](https://discuss.elastic.co/u/smlbiobot)\
**Post date:** [September 6, 2021, 7:39am UTC](https://discuss.elastic.co/t/find-all-indices-belonging-to-box-type-hot/283415/1 "2021-09-06T07:39:29Z")

</div>

Is there an easy way to find all indices belonging to box type hot?

I know that I can run `GET /_nodes/box_type:hot` to get all the nodes, and then maybe run a second step to find which node an index belong to, but I’m trying to see if there’s an endpoint that I can run directly insider Kibana.

Thanks!

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [September 6, 2021, 9:00am UTC](https://discuss.elastic.co/t/find-all-indices-belonging-to-box-type-hot/283415/2 "2021-09-06T09:00:55Z")

</div>

From 7.13 we [introduced](https://github.com/elastic/elasticsearch/pull/69288) a queryable metadata field which is the `_tier` field and represents the allocation routing preference(s) assigned to an index. Of course a preference is just that and in reality an index may not be held on its preferred choice of hot/warm etc but in practice you would hope most of the time this choice would be fulfilled.

To get a list of indices which have a stated preference to be on hot nodes you'd need something like this:

```auto
GET /*/_search
{
"query": {
    "terms": {
      "_tier": ["data_hot"] 
    }
  },
  "size":0,
  "aggs":{
    "indices":{
      "terms": {
        "field": "_index",
        "size": 100
      }
    }
  }
}

```

---

<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:** [October 4, 2021, 9:01am UTC](https://discuss.elastic.co/t/find-all-indices-belonging-to-box-type-hot/283415/3 "2021-10-04T09:01:44Z")

</div>

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