# Get index size result

**URL:** <https://discuss.elastic.co/t/get-index-size-result/138228>\
**Category:** Elasticsearch\
**Created:** [July 2, 2018, 2:24pm UTC](https://discuss.elastic.co/t/get-index-size-result/138228 "2018-07-02T14:24:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![emil.mirzayev](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@emil.mirzayev](https://discuss.elastic.co/u/emil.mirzayev)\
**Post date:** [July 2, 2018, 2:24pm UTC](https://discuss.elastic.co/t/get-index-size-result/138228/1 "2018-07-02T14:24:55Z")

</div>

Hi ! When I run

> GET indexname/\_stats

do I get the size of that index without it's replicas, or with replicas included? If the 2nd, where I can find how many replicas of that index I have?

thanks beforehand.  
Part of the result:

```auto
{
  "_shards": {
    "total": 10,
    "successful": 5,
    "failed": 0
  },
  "_all": {
    "primaries": {
      "docs": {
        "count": 187330,
        "deleted": 0
      },
      "store": {
        "size_in_bytes": 16688925
      },

```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 2, 2018, 2:40pm UTC](https://discuss.elastic.co/t/get-index-size-result/138228/2 "2018-07-02T14:40:01Z")

</div>

It's in `_all.primaries.store.size_in_bytes` so it's only for primaries.  
You have later `_all.total.store.size_in_bytes` which includes all.

---

<div class="post-metadata">

**Author:** ![emil.mirzayev](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@emil.mirzayev](https://discuss.elastic.co/u/emil.mirzayev)\
**Post date:** [July 3, 2018, 6:26am UTC](https://discuss.elastic.co/t/get-index-size-result/138228/3 "2018-07-03T06:26:51Z")

</div>

If both of them are the same sized, does it mean that I do not have any replicas?

```auto
 "total": {
      "docs": {
        "count": 187330,
        "deleted": 0
      },
      "store": {
        "size_in_bytes": 16688925
      }

```

this is how primaries look like

```auto
"_all": {
    "primaries": {
      "docs": {
        "count": 187330,
        "deleted": 0
      },
      "store": {
        "size_in_bytes": 16688925
      }

```

After that comes `indices.indexname.primaries.store.size_in_bytes` and `indices.indexname.total.store.size_in_bytes` which are also the same as these two above.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 3, 2018, 6:38am UTC](https://discuss.elastic.co/t/get-index-size-result/138228/4 "2018-07-03T06:38:13Z")

</div>

What gives:

```
GET /_cat/indices?v

```

?

---

<div class="post-metadata">

**Author:** ![emil.mirzayev](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@emil.mirzayev](https://discuss.elastic.co/u/emil.mirzayev)\
**Post date:** [July 3, 2018, 6:41am UTC](https://discuss.elastic.co/t/get-index-size-result/138228/5 "2018-07-03T06:41:48Z")

</div>

This is what I get

 ![FireShot%20Capture%20011%20-%20Console%20-%20Kibana_%20-%20https___692b15d5d5752e6d0600efb77e](https://us1.discourse-cdn.com/elastic/original/3X/0/9/099fe2f63d8bec07c8aeca16b81adf35be619b0f.png)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 3, 2018, 7:25am UTC](https://discuss.elastic.co/t/get-index-size-result/138228/6 "2018-07-03T07:25:15Z")

</div>

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

I believe you have only one node running so replicas are not allocated.

---

<div class="post-metadata">

**Author:** ![emil.mirzayev](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@emil.mirzayev](https://discuss.elastic.co/u/emil.mirzayev)\
**Post date:** [July 3, 2018, 7:59am UTC](https://discuss.elastic.co/t/get-index-size-result/138228/7 "2018-07-03T07:59:21Z")

</div>

Just in case, pasting it again here. Thanks. Also, I see `rep` column, does it mean replica count? Is there a way to use Rest API to get node info?

```
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open original_meter_data RkWkulTfTZen7_FdYB9Zqw 5 1 89911 0 25.4mb 25.4mb
green open .reporting-2018.04.08 gu_0Gpk_RiGr6EvLhhG3tw 1 0 7 0 22.6mb 22.6mb
green open .reporting-2018.04.01 UgQbnygaSjKsUd9M6RMhEQ 1 0 2 0 18.9kb 18.9kb
yellow open .skedler_reporthistory 91MlV_yiTgq69VVQ1bb0LA 5 1 17 0 374.6kb 374.6kb
yellow open workforce_events elqqan25SU620qurnihqsg 5 1 1227 0 757.3kb 757.3kb
green open .security-6 70gGWCtdRMCPIMeHqHGGdQ 1 0                                                  
yellow open measurements VRPkKHjwTXOTXSOYlh69pQ 5 1 187330 0 15.9mb 15.9mb
yellow open .reporting-2017.11.26 wTSA_aVJR72OJefFWezWJw 5 1 1 0 465.4kb 465.4kb
yellow open .reporting-2017.12.17 D3ZNQI7wTFCPcxQ6X9lgkw 5 1 1 0 1.4mb 1.4mb
yellow open charging_sessions apGZWHsLSiKvewWkocoxYw 5 1 9730 0 8.9mb 8.9mb
green open .reporting-2018.03.25 ScA-qol0Si2jtve88m_OkQ 1 0 7 7 80.7kb 80.7kb
green open .watcher-history-7-2018.07.01 iPL9f2MoTcqn7L7MVovwoQ 1 0 2879 0 2.1mb 2.1mb
yellow open .skedler ULQZeLDpSNaNU5m6X-Elww 5 1 9 0 122.7kb 122.7kb
yellow open devices dvrMonRQQrKWmhn3rXPgew 5 1 1452 0 524.7kb 524.7kb
green open .reporting-2018.03.11 2O-rUWGtTrqvId9zBjBpiw 1 0 5 0 1mb 1mb
green open .reporting-2018.03.04 ILBPvIykSMqTbUn18eT6bg 1 0 4 0 35.1kb 35.1kb
yellow open vee_statistics WTJXr_MyTWSy0eU9r1yMuQ 5 1 14765 25 2.2mb 2.2mb
yellow open wallbox_sessions -diAc7fsSDieQNI8BUvvXg 5 1 700 0 856.8kb 856.8kb
yellow open .reporting-2018.02.11 -Potj37yQ_SO1qmRVA8ABQ 5 1 1 0 264.1kb 264.1kb
yellow open .watches Y5jKodHSQWaDcbxVREDurA 1 1 8 6 103.2kb 103.2kb
yellow open leakage S38Dyr4QQyWijRgQs0iYGQ 5 1 154 0 113kb 113kb
yellow open sessions hYJywaYlQMe4XTws-tTqAA 5 1 7558 0 7.1mb 7.1mb
yellow open meter_data 1b-U_LKbRAakHxAwlmSwsg 5 1 71161 0 22.2mb 22.2mb
green open .reporting-2018.06.24 bbzI2hCiTzCuzyiXH-1cSg 1 0 1 0 10.1kb 10.1kb
green open .watcher-history-7-2018.07.02 bjx7pIkeSjG76v_MHbxJPg 1 0 2878 0 2.2mb 2.2mb
yellow open .triggered_watches oxhcp_rkT16G80GATZRrPg 1 1 35 322 78.1kb 78.1kb
yellow open .reporting-2018.01.28 canKgrpRS5ecKvZg8MG9jA 5 1 1 0 1.6mb 1.6mb
yellow open .kibana jhHyzqKATPCB7ocN-Ragdw 1 1 278 0 433.4kb 433.4kb
green open .reporting-2018.03.18 4HomCWBJSR6E_2JOenmWIQ 1 0 1 0 729.5kb 729.5kb
yellow open alarms p-zeSZiCQ6ijt-KWlVOD8w 5 1 369843 0 37.9mb 37.9mb
green open .watcher-history-7-2018.07.03 9VH6xOplRbO-9esbCTzlAg 1 0 798 0 1.4mb 1.4mb
green open .monitoring-alerts-6 IUD79ScHRmS_jF9-spddLg 1 0 1 0 6.4kb 6.4kb
yellow open compressed_meter_data 3XZzJP-NR3mBck_oqwidZg 5 1 76607 0 19.6mb 19.6mb
yellow open damage_curve DSwNKsEKQcSPFU8iniwAyQ 5 1 3540 0 1.3mb 1.3mb
yellow open .reporting-2017.12.03 9pA4Jey8SJyH3u22ZKjeOQ 5 1 2 0 1.6mb 1.6mb
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 3, 2018, 11:12am UTC](https://discuss.elastic.co/t/get-index-size-result/138228/8 "2018-07-03T11:12:53Z")

</div>

```
GET /_cat/nodes?v
```

---

<div class="post-metadata">

**Author:** ![emil.mirzayev](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@emil.mirzayev](https://discuss.elastic.co/u/emil.mirzayev)\
**Post date:** [July 3, 2018, 11:14am UTC](https://discuss.elastic.co/t/get-index-size-result/138228/9 "2018-07-03T11:14:37Z")

</div>

Thank you for your help!

---

<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 31, 2018, 11:14am UTC](https://discuss.elastic.co/t/get-index-size-result/138228/10 "2018-07-31T11:14:44Z")

</div>

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