mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 04:30:43 +01:00
16 lines
500 B
Plaintext
16 lines
500 B
Plaintext
$IncludeConfig diag-common.conf
|
|
|
|
module(load="../plugins/omkafka/.libs/omkafka")
|
|
|
|
ruleset(name="stats") {
|
|
action(type="omfile" file="./rsyslog.out.stats.log")
|
|
}
|
|
|
|
module(load="../plugins/impstats/.libs/impstats" interval="1" severity="7" resetCounters="on" Ruleset="stats" bracketing="on")
|
|
|
|
template(name="outfmt" type="string" string="%msg%\n")
|
|
|
|
if ($msg contains "msgnum") then {
|
|
action(name="kafka-fwd" type="omkafka" topic="static" broker="localhost" template="outfmt" partitions.auto="on")
|
|
}
|