Class: Fluent::Plugin::JllogFilter

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

Instance Method Summary collapse

Instance Method Details

#filter(tag, time, record) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/fluent/plugin/filter_jllog.rb', line 23

def filter(tag, time, record)
  if record.has_key?("context")
    record["context"].each { |key, value| record.store(key, value) }
    record.delete("context")
  end
  record
end