# Index size

**URL:** <https://discuss.elastic.co/t/index-size/17529>\
**Category:** Elasticsearch\
**Created:** [May 15, 2014, 7:47am UTC](https://discuss.elastic.co/t/index-size/17529 "2014-05-15T07:47:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukas\_Homza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_homza/32/1564_2.png) [@Lukas\_Homza](https://discuss.elastic.co/u/Lukas_Homza)\
**Post date:** [May 15, 2014, 7:47am UTC](https://discuss.elastic.co/t/index-size/17529/1 "2014-05-15T07:47:06Z")

</div>

Hey,

I am using logstash and elasticsearch for logs. I have noticed a huge  
difference in index size between test and production environment. In  
testing environment - index size with 20k documents is 15MB, however in  
production with 60k documents - index size is 2GB.

Everything logged in production is the same as in test. The only difference  
is speed at which logs are logged.

Why is there such huge difference in size? Could it be that the index cant  
keep up with optimizing itself (after I hit optimize, size dropped by 200MB  
and in test environment index size was going between 15-300MB)? What can be  
done do decrease index size?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/71056765-4fc4-4caf-9afc-653a73d38416%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/71056765-4fc4-4caf-9afc-653a73d38416%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:29am UTC](https://discuss.elastic.co/t/index-size/17529/2 "2017-07-06T01:29:14Z")

</div>


