# Sort Shards By Indexing Time

**URL:** <https://discuss.elastic.co/t/sort-shards-by-indexing-time/228787>\
**Category:** Elasticsearch\
**Created:** [April 20, 2020, 5:08am UTC](https://discuss.elastic.co/t/sort-shards-by-indexing-time/228787 "2020-04-20T05:08:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alsheh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alsheh/32/36799_2.png) [@Alsheh](https://discuss.elastic.co/u/Alsheh)\
**Post date:** [April 20, 2020, 5:08am UTC](https://discuss.elastic.co/t/sort-shards-by-indexing-time/228787/1 "2020-04-20T05:08:35Z")

</div>

Is there a way to sort shards by indexing time metric?

My specific scenario is that Logstash makes a bulk requests to various indices but one index might have inefficient mapping which allows for fields explosion which slows down indexing on specific node for all indices, in some cases results in requests rejection due to full write queue. I'm hoping by identifying the slowest shard for indexing I could move it to a different node or at least narrow down the scope of the problem more quickly.

Thanks!

---

<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:** [May 18, 2020, 5:08am UTC](https://discuss.elastic.co/t/sort-shards-by-indexing-time/228787/2 "2020-05-18T05:08:43Z")

</div>

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