# Differences between index/\_stats size and du -h size

**URL:** https://discuss.elastic.co/t/differences-between-index-stats-size-and-du-h-size/125468
**Category:** Elasticsearch
**Created:** [March 25, 2018, 7:30am UTC](https://discuss.elastic.co/t/differences-between-index-stats-size-and-du-h-size/125468 "2018-03-25T07:30:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yishain11](https://avatars.discourse-cdn.com/v4/letter/y/df705f/32.png) [@yishain11](https://discuss.elastic.co/u/yishain11)
#### Post date: [March 25, 2018, 7:30am UTC](https://discuss.elastic.co/t/differences-between-index-stats-size-and-du-h-size/125468/1 "2018-03-25T07:30:37Z")

</div>

Hi everyone!  
I have a quick question:

I create random JSON files and send them to elasticsearch.  
When I check the sizes of the files using du -h in my centos machine and when I check the stats in the \_stats section I get major differences between the results.  
for example:

file number --- du -h size ------ /\_stats  
100 --------------- 404 kb ---------- 297 kb  
1000 ------------- 4096 kb -------- 1200 kb  
3000 ------------- 12 MB ----------- 3.3 MB

Now is it reasonable that storing somthing in elastic is so much smaller than on linux machine?  
Why is the gap is so big?

---

<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: [April 22, 2018, 7:31am UTC](https://discuss.elastic.co/t/differences-between-index-stats-size-and-du-h-size/125468/2 "2018-04-22T07:31:17Z")

</div>

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