summaryrefslogtreecommitdiffstats
path: root/tests/testsuites/da-mainmsg-q.conf
blob: 843a3e4f46616f577e266ad6f17b696699224f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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

$IncludeConfig diag-common.conf

# set spool locations and switch queue to disk assisted mode
$WorkDirectory test-spool
$MainMsgQueueSize 200 # this *should* trigger moving on to DA mode...
# note: we must set QueueSize sufficiently high, so that 70% (light delay mark)
# is high enough above HighWatermark!
$MainMsgQueueHighWatermark 80
$MainMsgQueueLowWatermark 40
$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