Class: LogStash::Filters::Influxdb
- Inherits:
-
Base
- Object
- Base
- LogStash::Filters::Influxdb
- Defined in:
- lib/logstash/filters/influxdb.rb
Overview
Add any asciidoc formatted documentation here This example 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 example.
Instance Method Summary collapse
Instance Method Details
#filter(event) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/logstash/filters/influxdb.rb', line 30 def filter(event) point = InfluxParser.parse_point(event.get(@source)) if point event.set('point', point) else event.set('point', {'_influxparseerror' => true }) end # filter_matched should go in the last line of our successful code filter_matched(event) end |
#register ⇒ Object
25 26 27 |
# File 'lib/logstash/filters/influxdb.rb', line 25 def register # Add instance variables end |