mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 12:10:43 +01:00
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
22 lines
439 B
Plaintext
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"
|
|
)
|