# Determine size of logstash indexes in elasticsearch

**URL:** https://discuss.elastic.co/t/determine-size-of-logstash-indexes-in-elasticsearch/23853
**Category:** Elasticsearch
**Created:** [June 17, 2015, 3:35pm UTC](https://discuss.elastic.co/t/determine-size-of-logstash-indexes-in-elasticsearch/23853 "2015-06-17T15:35:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bluethundr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bluethundr/32/409_2.png) [@bluethundr](https://discuss.elastic.co/u/bluethundr)
#### Post date: [June 17, 2015, 3:35pm UTC](https://discuss.elastic.co/t/determine-size-of-logstash-indexes-in-elasticsearch/23853/1 "2015-06-17T15:35:28Z")

</div>

Hi guys,

I need to try to determine how much size logstash is taking up in indexing the logs.

We have a 3 node elastic search cluster with logstash indexes on each one corresponding to the same days.

i.e.:

on ES node 1:

953M logstash-2015.06.16  
235M logstash-2015.06.17

on ES node 2:

240M logstash-2015.06.16  
916M logstash-2015.06.17

on ES node 3:

1.2G logstash-2015.06.16  
1.1G logstash-2015.06.17

So my question is, is the right approach to total all of the sizes from the 3 nodes for each day? So I would add the size of logstash-2015.06.17 on ES node1 to the sizes of the same index day for ES node 2 and ES node 3?

Or is there another way I need to do that?

Thanks,  
Tim

---

<div class="post-metadata">

### Author: ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)
#### Post date: [June 17, 2015, 3:50pm UTC](https://discuss.elastic.co/t/determine-size-of-logstash-indexes-in-elasticsearch/23853/2 "2015-06-17T15:50:23Z")

</div>

The cat API will do what you're looking for:

```
$ curl localhost:9200/_cat/indices?v
health status index pri rep docs.count docs.deleted store.size pri.store.size
green open kibana-int 1 1 9 0 111.4kb 55.7kb
green open .marvel-2015.06.16 1 1 303466 0 655.7mb 327.1mb
green open .marvel-2015.06.13 1 1 303461 0 637.3mb 318.2mb
green open logstash-2015.06.09 5 1 15542546 0 2.6gb 1.3gb
green open .marvel-2015.06.09 1 1 304025 0 701.4mb 350.7mb
green open .marvel-2015.06.05 1 1 304371 0 691.3mb 345.6mb
green open logstash-2015.06.08 5 1 15531583 0 2.6gb 1.3gb
       close logstash-2015.06.03
       close .marvel-2015.06.03
green open logstash-2015.06.13 5 1 15534682 0 5.5gb 2.7gb
green open logstash-2015.06.04 5 1 15697405 0 2.6gb 1.3gb
green open .marvel-2015.06.14 1 1 303596 0 644.6mb 321.6mb
green open logstash-2015.06.11 5 1 15534964 0 2.6gb 1.3gb
green open logstash-2015.06.10 5 1 15543394 0 2.6gb 1.3gb
green open .marvel-2015.06.07 1 1 304367 0 694.1mb 347mb
green open .marvel-2015.06.10 1 1 304334 0 706.6mb 353.3mb
green open logstash-2015.06.15 5 1 15536330 0 5.5gb 2.7gb
green open .marvel-2015.06.17 1 1 201947 0 457.6mb 223.5mb
green open .marvel-2015.06.11 1 1 304978 0 703.5mb 351.6mb
green open logstash-2015.06.12 5 1 15535711 0 5.5gb 2.7gb
green open logstash-2015.06.16 5 1 15552236 0 5.8gb 2.9gb
green open logstash-2015.06.05 5 1 15771832 0 2.7gb 1.3gb
green open logstash-2015.06.06 5 1 15525431 0 2.6gb 1.3gb
green open logstash-2015.06.07 5 1 15530311 0 2.6gb 1.3gb
green open .marvel-kibana 1 1 1 0 6.5kb 3.2kb
green open .marvel-2015.06.04 1 1 304508 0 685mb 342.5mb
green open .marvel-2015.06.08 1 1 304442 0 697.9mb 348.9mb
green open .marvel-2015.06.15 1 1 303569 0 650.1mb 324mb
green open .kibana 1 1 22 1 101.5kb 50.7kb
green open .marvel-2015.06.06 1 1 304399 0 693.3mb 346.6mb
green open logstash-2015.06.14 5 1 15527486 0 5.5gb 2.7gb
green open .marvel-2015.06.12 1 1 303534 0 629.6mb 314.2mb
green open logstash-2015.06.17 5 1 10235701 0 3.4gb 1.6gb
```

---

<div class="post-metadata">

### Author: ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)
#### Post date: [June 17, 2015, 3:51pm UTC](https://discuss.elastic.co/t/determine-size-of-logstash-indexes-in-elasticsearch/23853/3 "2015-06-17T15:51:28Z")

</div>

Hmmm. Without the "verbose," which is including the header, it fits here better:

```
$ curl localhost:9200/_cat/indices
green open kibana-int 1 1 9 0 111.4kb 55.7kb
green open .marvel-2015.06.16 1 1 303466 0 655.7mb 327.1mb
green open .marvel-2015.06.13 1 1 303461 0 637.3mb 318.2mb
…
```

---

<div class="post-metadata">

### Author: ![bluethundr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bluethundr/32/409_2.png) [@bluethundr](https://discuss.elastic.co/u/bluethundr)
#### Post date: [June 17, 2015, 4:35pm UTC](https://discuss.elastic.co/t/determine-size-of-logstash-indexes-in-elasticsearch/23853/4 "2015-06-17T16:35:11Z")

</div>

Cool Aaron!! Seems really easy this way. Thanks!! That's what I'll do. 🙂

Tim

---

<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 6, 2017, 12:06am UTC](https://discuss.elastic.co/t/determine-size-of-logstash-indexes-in-elasticsearch/23853/5 "2017-07-06T00:06:58Z")

</div>


