· df · 3 min read

Syslog Standards: RFC3164 vs RFC5424

SyslogGoogleWeb DevelopmentData

This page provides a clear and concise comparison between the old syslog standard (RFC 3164) and the modern format (RFC 5424). Whether you're working with legacy systems or modern log management tools, understanding the differences in structure, features, and formatting helps ensure better log parsing, monitoring, and compliance across systems.

Comparison Table

Field RFC3164 (Old Format) RFC5424 (New Format)
Example <35>Oct 12 22:14:15 client_machine su: 'su root' failed... <35>1 2013-10-11T22:14:15.003Z client_machine su - - - 'su root' failed...
Timestamp BSD-style (no year, no timezone) ISO-8601 with milliseconds and timezone
Priority Field Numeric value <Facility * 8 + Severity> Same as RFC3164
Hostname client_machine client_machine
Structured Data Not supported Supported (e.g. [exampleSDID@32473 iut="3"])
Max Length ~1024 bytes (typical) Configurable, supports larger payloads

Syslog Priority Matrix: Facility × Severity

Facility-Severity 0
Emergency
1
Alert
2
Critical
3
Error
4
Warning
5
Notice
6
Informational
7
Debug
0 - Kernel 01234567
1 - User 89101112131415
2 - Mail 1617181920212223
3 - Daemon 2425262728293031
4 - Auth 3233343536373839
5 - Syslog 4041424344454647
6 - LPR 4849505152535455
7 - News 5657585960616263
8 - UUCP 6465666768697071
9 - Cron 7273747576777879
10 - AuthPriv 8081828384858687
11 - FTP 8889909192939495
12 - NTP 96979899100101102103
13 - LogAudit 104105106107108109110111
14 - LogAlert 112113114115116117118119
15 - ClockDaemon120121122123124125126127
16 - Local0 128129130131132133134135
17 - Local1 136137138139140141142143
18 - Local2 144145146147148149150151
19 - Local3 152153154155156157158159
20 - Local4 160161162163164165166167
21 - Local5 168169170171172173174175
22 - Local6 176177178179180181182183
23 - Local7 184185186187188189190191

Recommendation

If your logging infrastructure supports RFC5424, it's generally recommended to adopt it due to its structured format, full timestamps with timezone info, and better compatibility with modern log aggregation tools like Splunk, Graylog, and Elasticsearch.

Reference Links