value¶
Counts only messages where the selected key equals the specified value.
This parameter applies to mmcount.
- Name:
value
- Scope:
input
- Type:
word
- Default:
none (count every observed key value)
- Required?:
no
- Introduced:
7.5.0
Description¶
Limits counting to a specific property value when combined with
key. After appName matches and
the requested key is present, mmcount compares the property’s string
representation with value
. If they are equal, a dedicated counter is
incremented and stored in the message’s mmcount
property. Messages that
do not match are left unchanged. When value
is not provided, mmcount
maintains separate counters for each property value instead.
Specifying value
without key has no practical
effect; in that case the module still counts messages per severity.
Input usage¶
action(type="mmcount" appName="glusterfsd" key="!gf_code" value="9999")
See also¶
See also mmcount.
Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project
Contributing: Source & docs: rsyslog source project
© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.