# Test for queue disk mode (see .sh file for details)
# rgerhards, 2009-04-17
$IncludeConfig diag-common.conf

$ModLoad ../plugins/imtcp/.libs/imtcp
$InputTCPServerRun 13514

# set spool locations and switch queue to disk-only mode
$WorkDirectory test-spool
$MainMsgQueueSyncQueueFiles on
$MainMsgQueueTimeoutShutdown 10000
$MainMsgQueueFilename mainq
$MainMsgQueueType disk

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