# Elastic search disk usage

**URL:** <https://discuss.elastic.co/t/elastic-search-disk-usage/98119>\
**Category:** Elasticsearch\
**Created:** [August 23, 2017, 6:30pm UTC](https://discuss.elastic.co/t/elastic-search-disk-usage/98119 "2017-08-23T18:30:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fhalde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fhalde/32/21419_2.png) [@fhalde](https://discuss.elastic.co/u/fhalde)\
**Post date:** [August 23, 2017, 6:30pm UTC](https://discuss.elastic.co/t/elastic-search-disk-usage/98119/1 "2017-08-23T18:30:24Z")

</div>

Hi

Just wanted to know how elastic search calculates nodes disk usage when the following query is hit

`a.b.c.d:9200/_nodes/stats`

```auto
"fs":  
{
                "timestamp": 1503512623603,
                "total": {
                    "total_in_bytes": 104022159360,
                    "free_in_bytes": 33077583872,
                    "available_in_bytes": 33060806656,
                    "spins": "true"
                }
}

```

Will the output from df command be fairly close to what the above query returns. Which one would be accurate ?

We are designing a monitoring system and want to generate alerts when the disk is running out of space!

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [August 23, 2017, 9:10pm UTC](https://discuss.elastic.co/t/elastic-search-disk-usage/98119/2 "2017-08-23T21:10:47Z")

</div>

Yes, the output should be very close to the output of du/df.

---

<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:** [September 20, 2017, 9:11pm UTC](https://discuss.elastic.co/t/elastic-search-disk-usage/98119/3 "2017-09-20T21:11:13Z")

</div>

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