class LogStash::Filters::Clone
The clone filter is for duplicating events. A clone will be made for each type in the clone list. The original event is left unchanged.
Public Instance Methods
filter(event) { |clone| ... }
click to toggle source
# File lib/logstash/filters/clone.rb, line 22 def filter(event) return unless filter?(event) @clones.each do |type| clone = event.clone clone["type"] = type filter_matched(clone) @logger.debug("Cloned event", :clone => clone, :event => event) # Push this new event onto the stack at the LogStash::FilterWorker yield clone end end
register()
click to toggle source
# File lib/logstash/filters/clone.rb, line 17 def register # Nothing to do end