-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path10-impstats.conf
36 lines (30 loc) · 1.09 KB
/
10-impstats.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Switch back to default ruleset
$RuleSet RSYSLOG_DefaultRuleset
# Input Module to Generate Periodic Statistics of Internal Counters
# http://www.rsyslog.com/doc/impstats.html
# http://www.rsyslog.com/impstats-analyzer/
module(load="impstats" interval="60" severity="7" format="json")
module(load="omprog")
template (name="JustTheMSG" type="string" string="%msg%\n")
if $programname == "rsyslogd-pstats" then {
action(name="action-impstats" type="omfile" file="/var/log/rsyslogd-impstats.log"
# queue configuration
queue.type="LinkedList"
queue.checkpointinterval="0"
queue.discardmark="90"
queue.size="100"
queue.timeoutenqueue="10"
queue.dequeuebatchsize="50"
)
# monitoring template="JustTheMSG"
action(name="action-omprog-impstats" type="omprog" binary="/usr/bin/rsyslog-impstats.py" template="JustTheMSG"
# queue configuration
queue.type="LinkedList"
queue.checkpointinterval="0"
queue.discardmark="900"
queue.size="100000"
queue.timeoutenqueue="10"
queue.dequeuebatchsize="50"
)
stop
}