mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 01:00:40 +01:00
10 lines
312 B
Plaintext
10 lines
312 B
Plaintext
$IncludeConfig diag-common.conf
|
|
template(name="outfmt" type="string" string="*Number is %$.number%*\n")
|
|
|
|
module(load="../plugins/imtcp/.libs/imtcp")
|
|
input(type="imtcp" port="13514")
|
|
|
|
set $.number = re_extract($msg, '.* ([0-9]+)$', 0, 1, 'none');
|
|
|
|
action(type="omfile" file="./rsyslog.out.log" template="outfmt")
|