rsyslog/tests/testsuites/imfile-readmode2-with-persists.conf
Rainer Gerhards dd546f82a5 imfile: proper handling of multiline messages after rsyslog restart
handling of persisted info (and polling loops) was not correct.

This needs some cleanup but I hope to find some folks for
independent testing before I declare victory.

see also https://github.com/rsyslog/rsyslog/issues/144
2015-03-29 14:38:59 +02:00

22 lines
439 B
Plaintext

$IncludeConfig diag-common.conf
global(workDirectory="test-spool")
module(load="../plugins/imfile/.libs/imfile")
input(type="imfile"
File="./rsyslog.input"
Tag="file:"
ReadMode="2")
template(name="outfmt" type="list") {
constant(value="HEADER ")
property(name="msg" format="json")
constant(value="\n")
}
if $msg contains "msgnum:" then
action(
type="omfile"
file="rsyslog.out.log"
template="outfmt"
)