- 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:
Jordan Sissel 2011-11-09 14:57:28 -08:00
parent 3a225aa85a
commit 715de06424

View 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