divmod()
A Python built-in function that divides two numbers and returns both the whole-number quotient and the remainder.
In more detail
divmod(38, 8) returns (4, 6). The course uses it to split a syslog priority into its facility (the quotient) and severity (the remainder) in one step.
Related terms
- syslog priority — The number at the start of a syslog message that encodes both its facility and its severity: facility times eight plus severity.
- Python — A popular general-purpose programming language known for readable code and a large standard library.
Taught in
- SIEM Architecture: Ingestion Pipelines & Indexing — Security Operations & Threat Hunting (SOC)