summaryrefslogtreecommitdiffstats
path: root/tests/testsuites/rsf_getenv.conf
blob: 2f2eb58c7643e1df299d2c9fc05144ab14ba8d4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Test for RainerScript getenv() function (see .sh file for details)
# Note envvar MSGNUM must be set to "msgnum:"
# rgerhards, 2009-11-03
$IncludeConfig diag-common.conf

$ModLoad ../plugins/imtcp/.libs/imtcp
$MainMsgQueueTimeoutShutdown 10000
$InputTCPServerRun 13514

# set spool locations and switch queue to disk-only mode
$WorkDirectory test-spool
$MainMsgQueueFilename mainq
$MainMsgQueueType disk

$template outfmt,"%msg:F,58:2%\n"
$template dynfile,"rsyslog.out.log" # trick to use relative path names!
if $msg contains getenv('MSGNUM') then ?dynfile;outfmt