# Multi tenant Elasticsearch deployment - storage usage

**URL:** <https://discuss.elastic.co/t/multi-tenant-elasticsearch-deployment-storage-usage/209098>\
**Category:** Elasticsearch\
**Created:** [November 22, 2019, 5:00pm UTC](https://discuss.elastic.co/t/multi-tenant-elasticsearch-deployment-storage-usage/209098 "2019-11-22T17:00:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravi\_Narayan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravi_narayan/32/57958_2.png) [@Ravi\_Narayan](https://discuss.elastic.co/u/Ravi_Narayan)\
**Post date:** [November 22, 2019, 5:00pm UTC](https://discuss.elastic.co/t/multi-tenant-elasticsearch-deployment-storage-usage/209098/1 "2019-11-22T17:00:46Z")

</div>

Hello,  
I have a multi tenant environment where the indexes are shared between tenants.The tenant data is secured using filtered alias .  
But I need a way to track the storage used by each tenant in order to move their data  
To their own dedicated index . I am unable to figure out how to get the storage size used by each tenant to be able to make the decision .  
I can get the number of documents but not the storage size . This is critical and I need a solution if there is one available .

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 25, 2019, 6:42am UTC](https://discuss.elastic.co/t/multi-tenant-elasticsearch-deployment-storage-usage/209098/2 "2019-11-25T06:42:48Z")

</div>

You might be able to get the total size of raw documents for a user through the [mapper size plugin](https://www.elastic.co/guide/en/elasticsearch/plugins/current/mapper-size.html) and use that to estimate portion of index storage used. It is not accurate but I am not aware of any other way to do 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:** [December 23, 2019, 6:56am UTC](https://discuss.elastic.co/t/multi-tenant-elasticsearch-deployment-storage-usage/209098/3 "2019-12-23T06:56:06Z")

</div>

Closed on December 23, 2019, 6:56am UTC

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