here is some information about GELF, all information what you need.
http://docs.graylog.org/en/2.5/pages/gelf.html
I wouldn’t use UDP only for compression.
Maybe beats output?
https://www.elastic.co/guide/en/beats/filebeat/current/logstash-output.html