severityMapping

Defines severity string to numeric code mappings.

This parameter applies to mmsnmptrapd: snmptrapd message modification module.

Name:

severityMapping

Scope:

next legacy action

Type:

string

Default:

action=none

Required?:

no

Introduced:

at least 5.8.1, possibly earlier

Description

This specifies the severity mapping table. It must be specified as a list. Note that no whitespace is supported inside the list, as it will likely lead to parsing errors. The list is constructed of Severity-Name/Severity-Value pairs, delimited by comma. Severity-Name is a case-sensitive string, e.g. warning and an associated numerical value (e.g. 4). Possible values are in the range 0..7 and are defined in RFC5424, table 2. The given sample would be specified as warning/4. The mapping is set with $mmsnmptrapdSeverityMapping before the next :mmsnmptrapd: action. The setting resets after that action is constructed. Repeat the directive before another action to give it a different mapping.

Legacy directive usage

module(load="mmsnmptrapd")
$mmsnmptrapdSeverityMapping warning/4,error/3
**:mmsnmptrapd:

Supported directive

This legacy directive is the supported way to configure this setting. It is not accepted as a module() or action() parameter. The setting resets after the next :mmsnmptrapd: action is constructed.

  • $mmsnmptrapdSeverityMapping

See also

See also mmsnmptrapd: snmptrapd message modification module.


Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2026 Rainer Gerhards and others. Licensed under the Apache License 2.0.