class LogStash::Filters::Test < LogStash::Filters::Base
config_name "test"
@@stored_event = nil
public
def register
end
public
def filter(event)
if @@stored_event.nil?
@@stored_event = event
event.cancel()
else
filter_matched(event)
yield event
filter_matched(@@stored_event)
yield @@stored_event
@@stored_event = nil
end
end
end
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.