# severityMapping

Defines severity string to numeric code mappings.

This parameter applies to mmsnmptrapd message modification module.

Name:

  severityMapping

Scope:

  module

Type:

  string

Default:

  module=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 defined when the module is loaded using the `module()` statement. This setting applies to all subsequent actions that use this module instance. To use different mappings, load separate instances of the module in different rulesets.

## Module usage

    module(load="mmsnmptrapd" severityMapping="warning/4,error/3")

### Legacy names (for reference)

Historic names/directives for compatibility. Do not use in new configs.

- $mmsnmptrapdSeverityMapping — maps to severityMapping (status: legacy)

## See also

See also mmsnmptrapd message modification module.

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.