# Test for persisting messages to disk on shutdown # rgerhards, 2009-04-17 $ModLoad ../plugins/imtcp/.libs/imtcp $MainMsgQueueTimeoutShutdown 10000 $MainMsgQueueSaveOnShutdown on $InputTCPServerRun 13514 $ModLoad ../plugins/imdiag/.libs/imdiag $IMDiagServerRun 13500 $ErrorMessagesToStderr off # set spool locations and switch queue to disk-only mode $WorkDirectory test-spool $MainMsgQueueFilename mainq $MainMsgQueueType LinkedList $template outfmt,"%msg:F,58:2%\n" $template dynfile,"rsyslog.out.log" # trick to use relative path names! :msg, contains, "msgnum:" ?dynfile;outfmt