Class: Fluent::SplitArrayFilter

Inherits:
Filter
  • Object
show all
Defined in:
lib/fluent/plugin/filter_split_array.rb

Instance Method Summary collapse

Instance Method Details

#filter_stream(tag, es) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/fluent/plugin/filter_split_array.rb', line 8

def filter_stream(tag, es)
  new_es = MultiEventStream.new
  es.each {|time, record|
    target_record = @split_key.nil? ? record : record[@split_key] || {}
    split(time, target_record, new_es)
  }
  new_es
end