# Sum Size of All Index

**URL:** https://discuss.elastic.co/t/sum-size-of-all-index/27572
**Category:** Elasticsearch
**Created:** [August 18, 2015, 9:25am UTC](https://discuss.elastic.co/t/sum-size-of-all-index/27572 "2015-08-18T09:25:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)
#### Post date: [August 18, 2015, 9:25am UTC](https://discuss.elastic.co/t/sum-size-of-all-index/27572/1 "2015-08-18T09:25:39Z")

</div>

Hi All,

I am trying to find the sum of all the index, i got the query which displays the size of all indexes in Elasticsearch.

I want to sum up the size of all the index, how could i achieve it ?

curl 'localhost:9200/\_cat/indices?v'

---

<div class="post-metadata">

### Author: ![MartinG](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@MartinG](https://discuss.elastic.co/u/MartinG)
#### Post date: [April 13, 2016, 2:40pm UTC](https://discuss.elastic.co/t/sum-size-of-all-index/27572/2 "2016-04-13T14:40:30Z")

</div>

curl -s http://:9200/\_cat/indices?bytes=m|cut -f8 -d" "|awk '{s+=$1} END {print s}'

where: bytes=m =\> Megabytes

and -f8 =\> primary + replicas

---

<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: [July 5, 2017, 10:59pm UTC](https://discuss.elastic.co/t/sum-size-of-all-index/27572/3 "2017-07-05T22:59:35Z")

</div>


