Class: Fluent::Base64DecodeFilter

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

Instance Method Summary collapse

Constructor Details

#initializeBase64DecodeFilter

Returns a new instance of Base64DecodeFilter.



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

def initialize
  super
end

Instance Method Details

#configure(conf) ⇒ Object



16
17
18
# File 'lib/fluent/plugin/filter_base64_decode.rb', line 16

def configure(conf)
  super
end

#filter(tag, time, record) ⇒ Object



20
21
22
23
24
25
# File 'lib/fluent/plugin/filter_base64_decode.rb', line 20

def filter(tag, time, record)
  @fields.each { |key|
    record[key] = Base64.decode64(record[key]) if record.has_key? key
  }
  record
end