1
# Test for RainerScript getenv() function (see .sh file for details)
2
# Note envvar MSGNUM must be set to "msgnum:"
3
# rgerhards, 2009-11-03
4
$IncludeConfig diag-common.conf
6
$ModLoad ../plugins/imtcp/.libs/imtcp
7
$MainMsgQueueTimeoutShutdown 10000
8
$InputTCPServerRun 13514
10
# set spool locations and switch queue to disk-only mode
11
$WorkDirectory test-spool
12
$MainMsgQueueFilename mainq
13
$MainMsgQueueType disk
15
$template outfmt,"%msg:F,58:2%\n"
16
$template dynfile,"rsyslog.out.log" # trick to use relative path names!
17
if $msg contains getenv('MSGNUM') then ?dynfile;outfmt