mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 01:00:40 +01:00
Thanks to Michael Biebl for reporting this see also https://github.com/rsyslog/rsyslog/issues/524
12 lines
438 B
Plaintext
12 lines
438 B
Plaintext
$IncludeConfig diag-common.conf
|
|
template(name="outfmt" type="string" string="%$.replaced_msg%\n")
|
|
|
|
module(load="../plugins/imtcp/.libs/imtcp")
|
|
input(type="imtcp" port="13514")
|
|
|
|
set $.replaced_msg = replace($msg, "syslog", "rsyslog");
|
|
set $.replaced_msg = replace($.replaced_msg, "hello", "hello_world");
|
|
set $.replaced_msg = replace($.replaced_msg, "foo_bar_baz", "FBB");
|
|
|
|
action(type="omfile" file="./rsyslog.out.log" template="outfmt")
|