mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 01:00:40 +01:00
17 lines
523 B
Plaintext
17 lines
523 B
Plaintext
$IncludeConfig diag-common.conf
|
|
|
|
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% %$.increment_successful%\n")
|
|
|
|
dyn_stats(name="msg_stats")
|
|
|
|
set $.msg_prefix = field($msg, 32, 2);
|
|
|
|
set $.increment_successful = dyn_inc("msg_stats", $.msg_prefix);
|
|
|
|
action(type="omfile" file="./rsyslog.out.log" template="outfmt") |