mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- Add null output. Not sure if it'll get used, but it could be useful
for helping benchmark or debug a filter or input when output isn't necessary.
This commit is contained in:
parent
3a225aa85a
commit
715de06424
1 changed files with 13 additions and 0 deletions
13
lib/logstash/outputs/null.rb
Normal file
13
lib/logstash/outputs/null.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
require "logstash/outputs/base"
|
||||
require "logstash/namespace"
|
||||
|
||||
# A null output. This is useful for testing logstash inputs and filters for
|
||||
# performance.
|
||||
class LogStash::Outputs::Null < LogStash::Outputs::Base
|
||||
config_name "null"
|
||||
|
||||
public
|
||||
def receive(event)
|
||||
# Do nothing
|
||||
end # def event
|
||||
end # class LogStash::Outputs::Null
|
Loading…
Add table
Add a link
Reference in a new issue