Emergency server help: get in touch

Syslog Priority Decoder: PRI to Facility and Severity

Decode the at the start of a syslog message into facility and severity, read the RFC 3164 or RFC 5424 header, or turn a facility and severity into a PRI value and rsyslog selector.

Where it runs
Runs in your browser
Last updated
October 12, 2026

This syslog priority decoder turns the number in angle brackets at the start of a syslog message, such as <134>, into its facility and severity, and works the other way round. It runs entirely in your browser: nothing you type is sent to our server.

Loading the tool… It runs in your browser and needs JavaScript.

How PRI works

PRI = facility × 8 + severity. <134> is facility 16 (local0) and severity 6 (info). The highest valid value is 191 (local7.debug). Network devices often let you choose the facility (Cisco logging facility local6) so you can sort their messages on the syslog server.

Using the result

# rsyslog: all local0 messages at warning or worse to their own file
local0.warning    /var/log/network.log
# send a test message
logger -p local0.warning -t test "hello"
# journal: errors and worse from one facility
journalctl -p err SYSLOG_FACILITY=16

For finding logs on the server, see Linux server log file locations and journalctl commands.

How we checked it

We checked the decoder on 11-12 October 2026 with RFC 3164 and RFC 5424 sample messages (including the <165> example from RFC 5424), out-of-range values and the reverse encoding.

Frequently asked questions

What is PRI in syslog?

The priority value in angle brackets at the start of a message. It combines facility and severity: facility × 8 + severity.

What does mean in syslog?

Facility 16 (local0) and severity 6 (informational).

What are the syslog severity levels?

0 emergency, 1 alert, 2 critical, 3 error, 4 warning, 5 notice, 6 informational, 7 debug.

Share this tool

Free website test

Is your website set up right?

Check SSL, security headers, redirects, robots.txt, sitemap, llms.txt and security.txt in one test. It takes about 30 seconds.