Class: Fluent::DioFilter
- Inherits:
-
Filter
- Object
- Filter
- Fluent::DioFilter
- Defined in:
- lib/fluent/plugin/filter_dio.rb
Instance Method Summary collapse
Instance Method Details
#configure(conf) ⇒ Object
6 7 8 9 10 |
# File 'lib/fluent/plugin/filter_dio.rb', line 6 def configure(conf) super @keys = @keys.split(',').map(&:strip) end |
#filter(tag, time, record) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/fluent/plugin/filter_dio.rb', line 12 def filter(tag, time, record) @keys.each do |key| record[key] = Time.parse(record[key]).to_i end record end |