# Most popular indices/shards

**URL:** <https://discuss.elastic.co/t/most-popular-indices-shards/97643>\
**Category:** Elasticsearch\
**Created:** [August 19, 2017, 2:39am UTC](https://discuss.elastic.co/t/most-popular-indices-shards/97643 "2017-08-19T02:39:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sqlplus](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@sqlplus](https://discuss.elastic.co/u/sqlplus)\
**Post date:** [August 19, 2017, 2:39am UTC](https://discuss.elastic.co/t/most-popular-indices-shards/97643/1 "2017-08-19T02:39:18Z")

</div>

Hello Everyone,

I have a busy elasticsearch cluster running 5.3.0. CPU Load is high on 2 nodes and query time as well. Bottleneck seems to be related to I/O. I was wondering, how can I know which indices or shards are the most access? I would like to move busy shards to nodes that are less busy. This would be a temporary solution until I add more I/O's.

Thanks,

Steeve

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 19, 2017, 1:29pm UTC](https://discuss.elastic.co/t/most-popular-indices-shards/97643/2 "2017-08-19T13:29:44Z")

</div>

You can use the [indices stats](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/indices-stats.html) to find out how much time is spent searching per index.

---

<div class="post-metadata">

**Author:** ![sqlplus](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@sqlplus](https://discuss.elastic.co/u/sqlplus)\
**Post date:** [August 19, 2017, 2:33pm UTC](https://discuss.elastic.co/t/most-popular-indices-shards/97643/3 "2017-08-19T14:33:18Z")

</div>

Thanks,

I have hundreds of indexes, how can I return index name, query\_time desc? I am struggling with the curl command.

-Steeve

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 20, 2017, 9:16pm UTC](https://discuss.elastic.co/t/most-popular-indices-shards/97643/4 "2017-08-20T21:16:48Z")

</div>

can you explain what your problem is? Which data are you missing to gather information?

---

<div class="post-metadata">

**Author:** ![sqlplus](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@sqlplus](https://discuss.elastic.co/u/sqlplus)\
**Post date:** [August 21, 2017, 12:37pm UTC](https://discuss.elastic.co/t/most-popular-indices-shards/97643/5 "2017-08-21T12:37:28Z")

</div>

How can I use the [https://www.elastic.co/guide/en/elasticsearch/reference/5.5/indices-stats.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/indices-stats.html)  
via a curl command order by query\_time desc?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 21, 2017, 3:28pm UTC](https://discuss.elastic.co/t/most-popular-indices-shards/97643/6 "2017-08-21T15:28:06Z")

</div>

ordering needs to be done by yourself, this just exposes stats. It is up to you what you do with it.

---

<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:** [September 18, 2017, 3:28pm UTC](https://discuss.elastic.co/t/most-popular-indices-shards/97643/7 "2017-09-18T15:28:09Z")

</div>

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