summaryrefslogtreecommitdiffstats
path: root/tests/testsuites/pipeaction.conf
blob: f58b6d65caf6a4e805d00516a41ce307a1245379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Test for pipe output action (see .sh file for details)
# rgerhards, 2009-11-05
$IncludeConfig diag-common.conf

$MainMsgQueueTimeoutShutdown 10000

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

$template outfmt,"%msg:F,58:2%\n"
# with pipes, we do not need to use absolute path names, so
# we can simply refer to our working pipe via the usual relative
# path name
:msg, contains, "msgnum:" |rsyslog-testbench-fifo;outfmt