Get index size result

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:

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

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.

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

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

this is how primaries look like

"_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.

What gives:

GET /_cat/indices?v

?

This is what I get

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.

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
GET /_cat/nodes?v
1 Like

Thank you for your help!

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