mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -04:00
updates as per code review
This commit is contained in:
parent
ef816ae23c
commit
2435c63770
1 changed files with 2 additions and 2 deletions
|
@ -176,8 +176,8 @@ class LogStash::Event
|
||||||
def overwrite(event)
|
def overwrite(event)
|
||||||
@data = event.to_hash
|
@data = event.to_hash
|
||||||
#convert timestamp if it is a String
|
#convert timestamp if it is a String
|
||||||
if @data["@timestamp"].is_a?(String)
|
if @data[TIMESTAMP].is_a?(String)
|
||||||
@data["@timestamp"] = LogStash::Time.parse_iso8601(@data["@timestamp"])
|
@data[TIMESTAMP] = LogStash::Time.parse_iso8601(@data[TIMESTAMP])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue