mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 12:40:42 +01:00
22 lines
764 B
Plaintext
22 lines
764 B
Plaintext
# 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
|