Skip to content

Commit

Permalink
- Allow events to override another (needed for multiline)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Nov 20, 2010
1 parent 35529dc commit 928e72a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/logstash/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,9 @@ def to_json; return @data.to_json end # def to_json

def to_hash; return @data end # def to_hash

def overwrite(event)
@data = event.to_hash
end

def include?(key); return @data.include?(key) end
end; end # class LogStash::Event

0 comments on commit 928e72a

Please sign in to comment.