GELF output with compression option?

Hello Everyone,

does logstash support option compressions for GELF over UDP ?

Related to this documentation :

http://docs.graylog.org/en/latest/pages/gelf.html?highlight=compression#compression

I found nothing on logstash GELF output option :
https://www.elastic.co/guide/en/logstash/current/plugins-outputs-gelf.html

I need to forward logs throught a low bandwitch link a lot of syslog datas.

Thanks :wink:

Assuming the logstash gelf output is using this gelf library, then my reading of the code is that it unconditionally does 'Zlib::Deflate.deflate(hash.to_json).bytes' before adding the datagram to the queue.

If you are able to run a packet trace it should be pretty obvious whether the packets contains JSON or compressed JSON.

hi @Badger thanks for your help...it should automaticaly compress the JSON if i understand ?

Yes.

1 Like

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