Merge pull request #1161 from rtkmhart/master

Fix event::overwrite to copy timestamp properly
This commit is contained in:
Jordan Sissel 2014-03-11 10:09:53 -07:00
commit cd1f529867

View file

@ -175,6 +175,10 @@ class LogStash::Event
public public
def overwrite(event) def overwrite(event)
@data = event.to_hash @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 end
public public