# How to Get Disk Usage by Search or Query Terms?

**URL:** <https://discuss.elastic.co/t/how-to-get-disk-usage-by-search-or-query-terms/259836>\
**Category:** Elasticsearch\
**Created:** [December 29, 2020, 10:54pm UTC](https://discuss.elastic.co/t/how-to-get-disk-usage-by-search-or-query-terms/259836 "2020-12-29T22:54:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bbek/32/44087_2.png) [@bbek](https://discuss.elastic.co/u/bbek)\
**Post date:** [December 29, 2020, 10:54pm UTC](https://discuss.elastic.co/t/how-to-get-disk-usage-by-search-or-query-terms/259836/1 "2020-12-29T22:54:15Z")

</div>

I have multiple systems feeding a single index.

What is the best approach to find size on disk, specific to search results? I'm trying to allocate by actual storage to get each 'department' cost.

For instance mixing:  
GET /\_cat/allocation  
GET /\_cat/nodes

and something like:  
/\_search?q=dept%3Amaintenance

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 29, 2020, 11:07pm UTC](https://discuss.elastic.co/t/how-to-get-disk-usage-by-search-or-query-terms/259836/2 "2020-12-29T23:07:05Z")

</div>

The only way to do that is via [https://www.elastic.co/guide/en/elasticsearch/plugins/current/mapper-size.html](https://www.elastic.co/guide/en/elasticsearch/plugins/current/mapper-size.html)

---

<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:** [January 26, 2021, 11:07pm UTC](https://discuss.elastic.co/t/how-to-get-disk-usage-by-search-or-query-terms/259836/3 "2021-01-26T23:07:14Z")

</div>

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