# Index size and doc\_count of a customer or field filter

**URL:** https://discuss.elastic.co/t/index-size-and-doc-count-of-a-customer-or-field-filter/343025
**Category:** Elasticsearch
**Created:** [September 14, 2023, 8:05am UTC](https://discuss.elastic.co/t/index-size-and-doc-count-of-a-customer-or-field-filter/343025 "2023-09-14T08:05:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![agonzalez](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@agonzalez](https://discuss.elastic.co/u/agonzalez)
#### Post date: [September 14, 2023, 8:05am UTC](https://discuss.elastic.co/t/index-size-and-doc-count-of-a-customer-or-field-filter/343025/1 "2023-09-14T08:05:24Z")

</div>

Hi, i have one index where i store documents from different customerid differentiated but a customerid field.

I want to know how many documents and storage size each customer is consuming in my index, I can see this for all the index but how can i get an aggregate by customerid of numbers of document and storage size?

---

<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 12, 2023, 8:05am UTC](https://discuss.elastic.co/t/index-size-and-doc-count-of-a-customer-or-field-filter/343025/2 "2023-10-12T08:05:56Z")

</div>

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