mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 07:00:42 +01:00
21 lines
639 B
Bash
Executable File
21 lines
639 B
Bash
Executable File
#!/bin/bash
|
|
. $srcdir/diag.sh init
|
|
. $srcdir/diag.sh generate-conf
|
|
. $srcdir/diag.sh add-conf '
|
|
#module(load="../plugins/imtcp/.libs/imtcp")
|
|
#input(type="imtcp" port="13514")
|
|
template(name="outfmt" type="string" string="%msg:F,58:2%\n")
|
|
|
|
if `echo $DO_WORK` == "on" and $msg contains "msgnum:" then
|
|
action(type="omfile" file=`echo $OUTFILE` template="outfmt")
|
|
'
|
|
export DO_WORK=on
|
|
export OUTFILE=rsyslog.out.log
|
|
. $srcdir/diag.sh startup-vg
|
|
. $srcdir/diag.sh injectmsg 0 1000
|
|
#. $srcdir/diag.sh tcpflood -m10
|
|
. $srcdir/diag.sh shutdown-when-empty
|
|
. $srcdir/diag.sh wait-shutdown-vg
|
|
. $srcdir/diag.sh seq-check 0 999
|
|
. $srcdir/diag.sh exit
|