rsyslog/tests/testsuites/sndrcv_kafka_rcvr.conf
Andre Lorbach a4614d78cf imkafka: Code cleanup and makefile corrections
Added --enable-omkafka back and added --enable-imkafka to configure
options. Only if both are enabled, kafka tests can be used and run.

testbench: replaced old kafka tests with new ones using imkafka/omkafka

imkafka: Added support to custom parameters from confParam

confParam works simular like in omkafka and can be used to set
custom parameters.

testbench: Added missing new kafka testfile
2017-05-12 14:23:37 +02:00

19 lines
486 B
Plaintext

$IncludeConfig diag-common.conf
module(load="../plugins/imkafka/.libs/imkafka")
/* Polls messages from kafka server!*/
input( type="imkafka"
topic="static"
broker="localhost:29092"
consumergroup="default"
confParam=[ "compression.codec=snappy",
"socket.timeout.ms=1000",
"socket.keepalive.enable=true"]
)
template(name="outfmt" type="string" string="%msg:F,58:2%\n")
if ($msg contains "msgnum:") then {
action( type="omfile" file="rsyslog.out.log" template="outfmt" )
}