Class: Fluent::ExampleFilter

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

Instance Method Summary collapse

Instance Method Details

#configure(conf) ⇒ Object



8
9
10
11
# File 'lib/fluent/plugin/filter_example.rb', line 8

def configure(conf)
  super
      
end

#filter(tag, time, record) ⇒ Object

configure



13
14
15
16
17
18
19
# File 'lib/fluent/plugin/filter_example.rb', line 13

def filter(tag, time, record)
  if @host
    record["host"] = @host
  end
  
  record
end