# How to check the original size of the log file before compression

**URL:** <https://discuss.elastic.co/t/how-to-check-the-original-size-of-the-log-file-before-compression/55303>\
**Category:** Elasticsearch\
**Created:** [July 12, 2016, 2:24pm UTC](https://discuss.elastic.co/t/how-to-check-the-original-size-of-the-log-file-before-compression/55303 "2016-07-12T14:24:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![devibala](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/devibala/32/70542_2.png) [@devibala](https://discuss.elastic.co/u/devibala)\
**Post date:** [July 12, 2016, 2:24pm UTC](https://discuss.elastic.co/t/how-to-check-the-original-size-of-the-log-file-before-compression/55303/1 "2016-07-12T14:24:43Z")

</div>

Using curl command need to check the size of the log file pushed into elasticsearch .

Scenario : I am using index.codec: best\_compression in yml file so using /\_stats i see the compressed size of the log file i want to compare with the original size of the log file .....Using what command i can see that???

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 14, 2016, 9:57am UTC](https://discuss.elastic.co/t/how-to-check-the-original-size-of-the-log-file-before-compression/55303/2 "2016-07-14T09:57:09Z")

</div>

You will be after [https://www.elastic.co/guide/en/elasticsearch/plugins/current/mapper-size.html](https://www.elastic.co/guide/en/elasticsearch/plugins/current/mapper-size.html)

---

<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 5, 2017, 10:35pm UTC](https://discuss.elastic.co/t/how-to-check-the-original-size-of-the-log-file-before-compression/55303/3 "2017-07-05T22:35:43Z")

</div>


