# ES ingest node vs logstash compression?

**URL:** <https://discuss.elastic.co/t/es-ingest-node-vs-logstash-compression/62675>\
**Category:** Elasticsearch\
**Created:** [October 11, 2016, 12:32am UTC](https://discuss.elastic.co/t/es-ingest-node-vs-logstash-compression/62675 "2016-10-11T00:32:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![agonzalez](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@agonzalez](https://discuss.elastic.co/u/agonzalez)\
**Post date:** [October 11, 2016, 12:32am UTC](https://discuss.elastic.co/t/es-ingest-node-vs-logstash-compression/62675/1 "2016-10-11T00:32:12Z")

</div>

Filebeat does compression when sending logs to logstash. I think sending directly to ES ingest node it will not do compression, is there any plan to add compression to ingest node?

We have lot of filebeat clients that send logs to a cloud server over internet and compression will reduce bandwith usage.

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [October 11, 2016, 2:00pm UTC](https://discuss.elastic.co/t/es-ingest-node-vs-logstash-compression/62675/2 "2016-10-11T14:00:04Z")

</div>

Hi,

it looks like beats just added the ability to enable gzip compression of JSON payload in this pull request:

> <https://github.com/elastic/beats/pull/1835>

This should be included in the upcoming 5.0 release then. It also seems you need to enable http compression on the ES side by setting the "[http.compression](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-http.html)" parameter on all you nodes, and this [thread](https://discuss.elastic.co/t/is-it-possible-to-send-gzip-compressed-requests-to-es/10859) also suggests your response might be compressed in that case. Some things to try out, but at least this seems to be possible somehow in the neat future.

---

<div class="post-metadata">

**Author:** ![agonzalez](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@agonzalez](https://discuss.elastic.co/u/agonzalez)\
**Post date:** [October 13, 2016, 9:49pm UTC](https://discuss.elastic.co/t/es-ingest-node-vs-logstash-compression/62675/3 "2016-10-13T21:49:25Z")

</div>

Thanks!

---

<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 5, 2017, 10:12pm UTC](https://discuss.elastic.co/t/es-ingest-node-vs-logstash-compression/62675/4 "2017-07-05T22:12:31Z")

</div>


