syslog priority
The number at the start of a syslog message that encodes both its facility and its severity: facility times eight plus severity.
In more detail
Divide the priority by eight: the quotient is the facility and the remainder is the severity. For example <38> is 4 × 8 + 6, which is facility auth and severity info, typical of an SSH login message.
Example
<4> decodes to facility 0 (kern) and severity 4 (warning), such as a firewall drop.Related terms
- syslog — The standard way that programs on Unix-like systems send log messages, and the service that collects, stores and forwards them.
- syslog facility — The part of a syslog priority that says which kind of program sent the message, such as kern for the kernel or auth for logins.
- syslog severity — The part of a syslog priority that says how serious the message is, from 0 (emergency) to 7 (debug).
- divmod() — A Python built-in function that divides two numbers and returns both the whole-number quotient and the remainder.
Taught in
- Alert Triage, False Positive Reduction & Fatigue Mitigation — Security Operations & Threat Hunting (SOC)
- SIEM Architecture: Ingestion Pipelines & Indexing — Security Operations & Threat Hunting (SOC)