logstash-plugins / logstash-input-gelf

Apache License 2.0
20 stars 39 forks source link

timestamp dropped #14

Open portermahoney opened 9 years ago

portermahoney commented 9 years ago

This block of code in the gelf.rb file seems to modify timestamp and then remove it. Looks like a bug to me. I like to see the timestamp field not dropped. Thanks!

https://github.com/logstash-plugins/logstash-input-gelf/blob/master/lib/logstash/inputs/gelf.rb#L112

if event["timestamp"].is_a?(Numeric) event.timestamp = LogStash::Timestamp.at(event["timestamp"]) event.remove("timestamp") end