Concepts / Monitoring

Monitoring

Facility and severity

Also called PRI, log level, syslog priority, local0, warning, debug

The two numbers that sort a syslog message: what kind of program sent it, and how bad it is.

One number holds both: facility x 8 + severity
One number holds both: facility x 8 + severity

The number that starts a syslog message packs what kind of program sent it and how bad it is. Lower severity is worse, so a filter on warning keeps 4 down to 0 and drops the rest.

Facility and severity are the two numbers that sort a syslog message: what kind of program sent it (4 auth, 16 to 23 local0 to local7) and how bad it is, from 0 emerg to 7 debug, lower being worse. Both travel as one number: facility times 8 plus severity. The filter *.warning keeps 4 and lower. Severity is the sender's opinion: a real problem logged as info passes unnoticed.

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