# How can I compress my elasticsearch logs data?

**URL:** <https://discuss.elastic.co/t/how-can-i-compress-my-elasticsearch-logs-data/140828>\
**Category:** Elasticsearch\
**Created:** [July 20, 2018, 4:07am UTC](https://discuss.elastic.co/t/how-can-i-compress-my-elasticsearch-logs-data/140828 "2018-07-20T04:07:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sfrogit96](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@sfrogit96](https://discuss.elastic.co/u/sfrogit96)\
**Post date:** [July 20, 2018, 4:07am UTC](https://discuss.elastic.co/t/how-can-i-compress-my-elasticsearch-logs-data/140828/1 "2018-07-20T04:07:07Z")

</div>

Hi there, I'm new in elasticsearch and I have an issue. I created 2 indexes "test1" and "test2" to test log storage in elasticsaerch, I used this for test1, and default for test2:

```
PUT /test1/_settings
{"index":{"codec":"best_compression"}}

```

and then I used logstash and pushed the same log data for two indexes to elasticsearch, but the issue is test1 and test2 I see in elasticsearch monitoring have the same size 4MB storage size. Please help me, I got stuck in this situation.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 20, 2018, 6:08am UTC](https://discuss.elastic.co/t/how-can-i-compress-my-elasticsearch-logs-data/140828/2 "2018-07-20T06:08:23Z")

</div>

You need to push much more data to see a difference IMO

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 20, 2018, 7:08am UTC](https://discuss.elastic.co/t/how-can-i-compress-my-elasticsearch-logs-data/140828/3 "2018-07-20T07:08:00Z")

</div>

Have a look at [this blog post](https://www.elastic.co/blog/filebeat-modiles-access-logs-and-elasticsearch-storage-requirements).

---

<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:** [August 17, 2018, 7:08am UTC](https://discuss.elastic.co/t/how-can-i-compress-my-elasticsearch-logs-data/140828/4 "2018-08-17T07:08:00Z")

</div>

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