syslog
The standard way that programs on Unix-like systems send log messages, and the service that collects, stores and forwards them.
In more detail
Each message carries a timestamp, the host, the program name, a facility such as auth or daemon, and one of eight severities from Emergency down to Debug. Traditional syslog timestamps have no year, so tools must supply one when parsing. Forwarding syslog to a central server that attackers cannot edit keeps evidence safe even if one machine is compromised.
Examples
# syslog lines carry no year, so supply one
stamp = datetime.strptime("2026 " + m[1], "%Y %b %d %H:%M:%S")A syslog message starts with a priority number in angle brackets, such as <38>, followed by a timestamp, host, program and message.Related terms
- Falco — An open-source runtime security tool that watches system calls on each node and raises alerts when they match rules.
- journalctl — The command that reads the systemd journal, where services on a Linux host write their logs.
- auth.log — The Linux log file that records logins, SSH sessions, sudo use and other authentication events.
- fail2ban — A Linux tool that watches log files for repeated failed logins and temporarily blocks the addresses they come from.
- evidence — The records, files and outputs that show a control really exists and works, collected so that someone else can check it.
- syslog priority — The number at the start of a syslog message that encodes both its facility and its severity: facility times eight plus severity.
- 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).
- rsyslog — The syslog server that most Linux distributions use to receive, filter and forward log messages.
- UDP — A simple internet protocol that sends messages without guaranteeing delivery or order, used by DNS and streaming.
Taught in
- Runtime Anomaly Detection with Falco & eBPF — Cloud Security & DevSecOps Engineering
- Defense-in-Depth & Security Control Categories — Cybersecurity Fundamentals, GRC & Cryptography
- SIEM Architecture: Ingestion Pipelines & Indexing — Security Operations & Threat Hunting (SOC)
- Event Correlation Rules, Thresholds & Anomaly Pipelines — Security Operations & Threat Hunting (SOC)
- Log Parsing, Schema Normalization (OCSF/ECS) & Extraction — Security Operations & Threat Hunting (SOC)
- Forty Gigabytes Of One Log: Logging Drivers And Their Options — Docker Certified Associate (DCA) Exam Prep
- Installation Sprint: Eight Configuration Calls — Docker Certified Associate (DCA) Exam Prep
- The Night Before: Final Review And Exam Day — Docker Certified Associate (DCA) Exam Prep
- One Word Locked Out Every Directory User: PAM, SSSD, LDAP And Kerberos — CompTIA Linux+ (XK0-006) Exam Prep
- Who Wrote That Sudoers File? The Journal, rsyslog, logrotate And auditd — CompTIA Linux+ (XK0-006) Exam Prep
- The Customers Noticed First: SLAs, SLOs, Alerts, SNMP And Log Aggregation — CompTIA Linux+ (XK0-006) Exam Prep
References
- RFC 5424: the syslog protocol
- syslog(3) manual page
- RFC 5424: The Syslog Protocol
- rsyslog documentation
- RFC 3164: The BSD syslog Protocol