rsyslog/tests/testsuites/rsf_getenv.conf
2009-11-03 09:20:02 +01:00

18 lines
567 B
Plaintext

# 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