Class: Fluent::Base64DecodeFilter
- Inherits:
-
Filter
- Object
- Filter
- Fluent::Base64DecodeFilter
- Defined in:
- lib/fluent/plugin/filter_base64_decode.rb
Instance Method Summary collapse
- #configure(conf) ⇒ Object
- #filter(tag, time, record) ⇒ Object
-
#initialize ⇒ Base64DecodeFilter
constructor
A new instance of Base64DecodeFilter.
Constructor Details
#initialize ⇒ Base64DecodeFilter
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 |