# Compress Json events (gzip, snappy, ...) before output

**URL:** <https://discuss.elastic.co/t/compress-json-events-gzip-snappy-before-output/121532>\
**Category:** Logstash\
**Created:** [February 26, 2018, 5:24pm UTC](https://discuss.elastic.co/t/compress-json-events-gzip-snappy-before-output/121532 "2018-02-26T17:24:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gghdr](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gghdr](https://discuss.elastic.co/u/gghdr)\
**Post date:** [February 26, 2018, 5:24pm UTC](https://discuss.elastic.co/t/compress-json-events-gzip-snappy-before-output/121532/1 "2018-02-26T17:24:54Z")

</div>

Hello,

i need to do exactly what i wrote in the topic, to compress my json event before shipping it to the output.

My pipeline is: Kafka (json) input -\> filters -\> Jms (IBM Websphere MQ) output

From my searches it seems that if the compression option is not present in the output plugin (like in the Kafka-input is present, in the Jms-output not) it's not possibile to do it; the request of a generic gzip codec is still open after 4 years ([https://github.com/elastic/logstash/issues/1817](https://github.com/elastic/logstash/issues/1817)).

Someone has any suggestion?

Thank you in advance for the support.

---

<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 26, 2018, 5:25pm UTC](https://discuss.elastic.co/t/compress-json-events-gzip-snappy-before-output/121532/2 "2018-03-26T17:25:14Z")

</div>

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