Class: LogStash::Filters::Joao
- Inherits:
-
Base
- Object
- Base
- LogStash::Filters::Joao
- Defined in:
- lib/logstash/filters/joao.rb
Overview
This filter will replace the contents of the default message field with whatever you specify in the configuration.
It is only intended to be used as an .
Instance Method Summary collapse
Instance Method Details
#filter(event) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/logstash/filters/joao.rb', line 31 def filter(event) if @message # Replace the event message with our message as configured in the # config file. event.set("message", @message) end # filter_matched should go in the last line of our successful code filter_matched(event) end |
#register ⇒ Object
26 27 28 |
# File 'lib/logstash/filters/joao.rb', line 26 def register # Add instance variables end |