logstash-plugins / logstash-input-gelf

Apache License 2.0
20 stars 39 forks source link

When Gelfd parser fails to process message, the exception message returned is not helpful enough #10

Open jordansissel opened 9 years ago

jordansissel commented 9 years ago

(This issue was originally filed by @taliesins at https://github.com/elastic/logstash/issues/2116)


It would be nice to know who is sending dodgy udp packets to GELF endpoint. In my case it turned out to be a misconfigured load balancer.

My monkey patch was to change gelf.rb:

@logger.warn("Gelfd failed to parse a message skipping", :exception => ex, :backtrace => ex.backtrace)

to

@logger.warn("Gelfd failed to parse a message skipping. Client was: #{client.inspect} .Message was: #{line.inspect}", :exception => ex, :backtrace => ex.backtrace)