syslogseverity-text

Returns the textual syslog severity defined in RFC 5424 Table 2.

This property belongs to the Message Properties group.

Name:

syslogseverity-text

Category:

Message Properties

Type:

string

Aliases:

syslogpriority-text

Description

Returns the textual name of the syslog severity defined in RFC 3164 and RFC 5424 (Table 2, emerg through debug). These strings describe how urgent the sending application considered the event. They map directly to the numeric values reported by syslogseverity. When rsyslog processes a message that lacked a syslog header, this property reports the configured or inferred severity label instead of a name supplied by the sender.

Usage

template(name="example" type="list") {
    property(name="syslogseverity-text")
}

Notes

  • Canonical severities: emerg, alert, crit, err, warning, notice, info, debug.

  • Filter by name with comparisons such as if $syslogseverity-text == 'warning'. Keep in mind that emitters may use small spelling variations like warn.

  • Severity remains independent from the facility; both combine into PRI (PRI = facility * 8 + severity).

Aliases

  • syslogpriority-text — alias for syslogseverity-text

See also

See rsyslog Properties for the category overview.


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.