Class: Fluent::ToSFilter
- Inherits:
-
Filter
- Object
- Filter
- Fluent::ToSFilter
- Defined in:
- lib/fluent/plugin/filter_tojs.rb
Instance Method Summary collapse
Instance Method Details
#configure(conf) ⇒ Object
6 7 8 |
# File 'lib/fluent/plugin/filter_tojs.rb', line 6 def configure(conf) super end |
#filter(tag, time, record) ⇒ Object
10 11 12 13 |
# File 'lib/fluent/plugin/filter_tojs.rb', line 10 def filter(tag, time, record) record[@field_name] = record.to_json return record end |