Class: Fluent::Plugin::Base64DecodeFilter

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

Instance Method Summary collapse

Instance Method Details

#filter(tag, time, record) ⇒ Object



12
13
14
15
16
17
# File 'lib/fluent/plugin/filter_base64_decode.rb', line 12

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