Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timestamp dropped #14

Open
portermahoney opened this issue Jun 25, 2015 · 0 comments
Open

timestamp dropped #14

portermahoney opened this issue Jun 25, 2015 · 0 comments

Comments

@portermahoney
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant