# How to compress your file output

**URL:** <https://discuss.elastic.co/t/how-to-compress-your-file-output/41036>\
**Category:** Logstash\
**Created:** [February 5, 2016, 8:48am UTC](https://discuss.elastic.co/t/how-to-compress-your-file-output/41036 "2016-02-05T08:48:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KabeloShongwe](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@KabeloShongwe](https://discuss.elastic.co/u/KabeloShongwe)\
**Post date:** [February 5, 2016, 8:48am UTC](https://discuss.elastic.co/t/how-to-compress-your-file-output/41036/1 "2016-02-05T08:48:16Z")

</div>

Hi i'm using the file output plugin to write logs to file. I'm having a problem getting the compression plugin.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 5, 2016, 10:04am UTC](https://discuss.elastic.co/t/how-to-compress-your-file-output/41036/2 "2016-02-05T10:04:25Z")

</div>

Please show what you've tried (i.e. your configuration), the results you get, and what you expected to get.

---

<div class="post-metadata">

**Author:** ![KabeloShongwe](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@KabeloShongwe](https://discuss.elastic.co/u/KabeloShongwe)\
**Post date:** [February 8, 2016, 6:55am UTC](https://discuss.elastic.co/t/how-to-compress-your-file-output/41036/3 "2016-02-08T06:55:05Z")

</div>

@magnusbaeck, Thanks man. I managed to solve it using gzip =\> true.

---

<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, 5:12am UTC](https://discuss.elastic.co/t/how-to-compress-your-file-output/41036/4 "2017-07-06T05:12:44Z")

</div>


