RFC 5424 — Syslog Protocol
The Syslog Protocol — standardized logging framework for conveying event notification messages across IP networks, essential for security monitoring, incident detection, and compliance audit trails.
1. Introduction
▶The Syslog Protocol provides a standardized format for generating, transporting, and collecting log messages from diverse systems. It is the foundation of centralized security monitoring and compliance audit trails.
2. Message Format
▶Syslog messages follow a structured format with a header and structured data:
<PRI>VERSION TIMESTAMP HOSTNAME APP-NAME PROCID MSGID SD MSG Example: <34>1 2026-03-29T17:30:00.000Z nrf.5gc.mnc001.mcc001 amf 1234 AUTH [meta sequenceId="1"] User authentication failed for SUPI 001010123456789
Priority (PRI) = Facility × 8 + Severity
3. Severity Levels
▶| Value | Severity | Description | ISO Relevance |
|---|---|---|---|
| 0 | Emergency | System is unusable | A.5.24 Incident Response |
| 1 | Alert | Action must be taken immediately | A.8.16 Monitoring |
| 2 | Critical | Critical conditions | A.8.16 Monitoring |
| 3 | Error | Error conditions | A.8.15 Logging |
| 4 | Warning | Warning conditions | A.8.15 Logging |
| 5 | Notice | Normal but significant | A.8.15 Logging |
| 6 | Informational | Informational messages | A.8.15 Logging |
| 7 | Debug | Debug-level messages | Development only |
4. Structured Data
▶Syslog supports structured data elements (SD-ELEMENT) for machine-parsable metadata:
- SD-ID: Identifies the type of structured data (e.g., timeQuality, origin, meta)
- SD-PARAM: Key-value pairs within an SD element
- IANA registry: Standard SD-IDs registered for interoperability
Structured data enables SIEM correlation and automated alerting per A.8.16.
5. Transport Considerations
▶Syslog messages can be transported over:
| Transport | RFC | Security |
|---|---|---|
| UDP (port 514) | RFC 5426 | No encryption — NOT recommended for A.8.24 |
| TLS (port 6514) | RFC 5425 | Encrypted, authenticated — RECOMMENDED |
| DTLS | RFC 6012 | Encrypted datagram transport |
6. Security Considerations
▶- Log integrity: Use TLS transport to prevent forgery and tampering (A.8.24)
- Clock synchronization: Accurate timestamps require NTP (RFC 5905) — critical for forensic timeline reconstruction
- Log retention: Define retention periods per A.5.28 and regulatory requirements
- Access control: Restrict who can read/modify logs — separation of duties (A.5.3)
- Overflow protection: Rate limiting and buffer management to prevent log loss during events