# Logstash file output. gzip performance

**URL:** <https://discuss.elastic.co/t/logstash-file-output-gzip-performance/250761>\
**Category:** Logstash\
**Tags:** elastic-stack-monitoring\
**Created:** [October 2, 2020, 8:42am UTC](https://discuss.elastic.co/t/logstash-file-output-gzip-performance/250761 "2020-10-02T08:42:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samuel\_Delepiere](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samuel_delepiere/32/75345_2.png) [@Samuel\_Delepiere](https://discuss.elastic.co/u/Samuel_Delepiere)\
**Post date:** [October 2, 2020, 8:42am UTC](https://discuss.elastic.co/t/logstash-file-output-gzip-performance/250761/1 "2020-10-02T08:42:47Z")

</div>

Hi,

I have a logstash instance ingesting large amount of log files data from Kafka. I write them back to disk using the file output plugin.  
From a performance point of view, is it better to get logstash to zip on the fly (gzip =\> "true") or write the files uncompressed and run external gzip commands to zip the files?

Thanks,

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [October 2, 2020, 1:34pm UTC](https://discuss.elastic.co/t/logstash-file-output-gzip-performance/250761/2 "2020-10-02T13:34:28Z")

</div>

I suggest you try both methods and measure the resources consumed.

---

<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:** [October 30, 2020, 1:34pm UTC](https://discuss.elastic.co/t/logstash-file-output-gzip-performance/250761/3 "2020-10-30T13:34:39Z")

</div>

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