Fix event::overwrite to copy timestamp properly

This commit is contained in:
Michael Hart 2014-03-11 11:16:37 -04:00
parent fa27dc9fcf
commit ef816ae23c

View file

@ -175,6 +175,10 @@ class LogStash::Event
public
def overwrite(event)
@data = event.to_hash
#convert timestamp if it is a String
if @data["@timestamp"].is_a?(String)
@data["@timestamp"] = LogStash::Time.parse_iso8601(@data["@timestamp"])
end
end
public