Class: SphinxEventFilter
- Inherits:
-
Object
- Object
- SphinxEventFilter
- Defined in:
- lib/logstash/filters/sphinx.rb
Direct Known Subclasses
SphinxLinuxEventFilter, SphinxMacEventFilter, SphinxWindowsEventFilter
Constant Summary collapse
- SPHINX_FILTER_VERSION =
1- SPHINX_FILTER_NAME =
'SphinxEventFilter'
Instance Method Summary collapse
- #apply(event) ⇒ Object
- #finalize(event) ⇒ Object
-
#initialize(config) ⇒ SphinxEventFilter
constructor
A new instance of SphinxEventFilter.
Constructor Details
#initialize(config) ⇒ SphinxEventFilter
Returns a new instance of SphinxEventFilter.
413 414 415 416 417 |
# File 'lib/logstash/filters/sphinx.rb', line 413 def initialize(config) @data_accessor = SphinxDataAccessor.new(config) end |
Instance Method Details
#apply(event) ⇒ Object
420 421 422 |
# File 'lib/logstash/filters/sphinx.rb', line 420 def apply(event) raise "Not implemented" end |
#finalize(event) ⇒ Object
425 426 427 428 |
# File 'lib/logstash/filters/sphinx.rb', line 425 def finalize(event) event['SphinxFilterVersion'] = self.class::SPHINX_FILTER_VERSION event['SphinxFilterName'] = self.class::SPHINX_FILTER_NAME end |