Class: Fluent::Plugin::ExtractQueryParamsFilter

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

Instance Method Summary collapse

Instance Method Details

#configure(conf) ⇒ Object



31
32
33
34
# File 'lib/fluent/plugin/filter_extract_query_params.rb', line 31

def configure(conf)
  super
  @extractor = Fluent::Plugin::QueryParamsExtractor.new(self, conf)
end

#filter(tag, time, record) ⇒ Object



36
37
38
# File 'lib/fluent/plugin/filter_extract_query_params.rb', line 36

def filter(tag, time, record)
  @extractor.add_query_params_field(record)
end