Class: Fluent::Plugin::FilterFilter
- Inherits:
-
Filter
- Object
- Filter
- Fluent::Plugin::FilterFilter
- Includes:
- FilterUtil
- Defined in:
- lib/fluent/plugin/filter_filter.rb
Instance Attribute Summary collapse
-
#allows ⇒ Object
Returns the value of attribute allows.
-
#denies ⇒ Object
Returns the value of attribute denies.
Instance Method Summary collapse
Methods included from FilterUtil
Instance Attribute Details
#allows ⇒ Object
Returns the value of attribute allows.
14 15 16 |
# File 'lib/fluent/plugin/filter_filter.rb', line 14 def allows @allows end |
#denies ⇒ Object
Returns the value of attribute denies.
15 16 17 |
# File 'lib/fluent/plugin/filter_filter.rb', line 15 def denies @denies end |
Instance Method Details
#configure(conf) ⇒ Object
17 18 19 20 21 |
# File 'lib/fluent/plugin/filter_filter.rb', line 17 def configure(conf) super @allows = toMap(@allow, @delim) @denies = toMap(@deny, @delim) end |
#filter(tag, time, record) ⇒ Object
23 24 25 |
# File 'lib/fluent/plugin/filter_filter.rb', line 23 def filter(tag, time, record) record if passRules(record) end |