Class: Fluent::Plugin::NaisMergeJsonFilter

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

Instance Method Summary collapse

Instance Method Details

#configure(conf) ⇒ Object



10
11
12
# File 'lib/fluent/plugin/filter_nais_merge_json.rb', line 10

def configure(conf)
  super
end

#filter(tag, time, record) ⇒ Object



14
15
16
# File 'lib/fluent/plugin/filter_nais_merge_json.rb', line 14

def filter(tag, time, record)
  ::Nais::Log::Parser.merge_json_field(record, @field)
end