Concepts / Monitoring

Monitoring

Syslog

Also called rsyslog, log collector, UDP 514, RFC 5424, RFC 3164, logger, central logging

The standard way devices send log lines to a collector: one message each, on port 514.

PRI packs facility and severity into one number
PRI packs facility and severity into one number

PRI is facility times 8 plus severity: 34 is facility 4 (auth), severity 2 (critical). The host name after it is whatever the sender wrote, not proof of who sent it.

Syslog is the standard way devices send log lines to a collector: one message each, port 514. Each starts with a PRI number (facility × 8 + severity), then a timestamp, host name, program tag and the text. Over UDP a message is unacknowledged, lost if the collector is down; TCP retries, TLS uses port 6514. The host name is the sender's claim, so collectors record the source address too.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab