# Globally set best\_compression

**URL:** <https://discuss.elastic.co/t/globally-set-best-compression/170298>\
**Category:** Elasticsearch\
**Created:** [February 28, 2019, 8:59am UTC](https://discuss.elastic.co/t/globally-set-best-compression/170298 "2019-02-28T08:59:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattia](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@mattia](https://discuss.elastic.co/u/mattia)\
**Post date:** [February 28, 2019, 8:59am UTC](https://discuss.elastic.co/t/globally-set-best-compression/170298/1 "2019-02-28T08:59:15Z")

</div>

I'd like to decrease the amount of space our elasticsearch instance uses. I'm not a developer working with elasticsearch, I just use an application that uses elasticsearch to save data. I therefore do not know lots about how elasticsearch works and I can not change much about how the application interacts with elasticsearch (the application being graylog). I'd like to globally set the max compression possible (a.k.a. best\_compression) to save space but the docs weren't super helpful. What I'd like to see is some setting I can put into the config file of elasticsearch or something similar. I'm primarily a sysadmin so tweaking configs in files is what I like to do most 😉 We have v5.6

Cheers

---

<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:** [February 28, 2019, 10:31am UTC](https://discuss.elastic.co/t/globally-set-best-compression/170298/2 "2019-02-28T10:31:52Z")

</div>

You could enforce this through an index template that matches all indices. This would however only apply to newly created indices.

---

<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:** [March 28, 2019, 10:31am UTC](https://discuss.elastic.co/t/globally-set-best-compression/170298/3 "2019-03-28T10:31:53Z")

</div>

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