summaryrefslogtreecommitdiffstats
path: root/tests/testsuites/da-mainmsg-q.conf
blob: 2d0e5b9283b7a62b5f002392d79150e0fb7d4cae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Test for DA mode in main message queue (see .sh file for details)
# rgerhards, 2009-04-22
$ModLoad ../plugins/imtcp/.libs/imtcp
$MainMsgQueueTimeoutShutdown 10000
$InputTCPServerRun 13514

$ErrorMessagesToStderr off

# set spool locations and switch queue to disk assisted mode
$WorkDirectory test-spool
$MainMsgQueueSize 100 # this *should* trigger moving on to DA mode...
$MainMsgQueueHighWatermark 80
$MainMsgQueueLowWatermark 40
$MainMsgQueueFilename mainq
$MainMsgQueueType linkedlist
$MainMsgQueueDeqzezeSlowdown 1000

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