# Test for tcp "flood" testing
# rgerhards, 2009-04-08
$IncludeConfig diag-common.conf

$ModLoad ../plugins/imtcp/.libs/imtcp
$MainMsgQueueTimeoutShutdown 10000
$MaxOpenFiles 200
$InputTCPMaxSessions 1100
# certificates
$DefaultNetstreamDriverCAFile testsuites/x.509/ca.pem
$DefaultNetstreamDriverCertFile testsuites/x.509/client-cert.pem
$DefaultNetstreamDriverKeyFile testsuites/x.509/client-key.pem

$DefaultNetstreamDriver gtls # use gtls netstream driver

$InputTCPServerStreamDriverMode 1
$InputTCPServerStreamDriverAuthMode anon
$InputTCPServerRun 13514

$template outfmt,"%msg:F,58:2%\n"
$template dynfile,"rsyslog.out.log" # trick to use relative path names!
:msg, contains, "msgnum:" ?dynfile;outfmt
