Somewhere between a router and a collector, a syslog message can lose its ending — and the damage is done by the header that was added to help. RFC 3164, the August 2001 Informational memo that finally wrote down the BSD syslog protocol, caps the entire packet at 1,024 bytes and then asks a relay to insert a timestamp, plus a hostname where it can find one, into a message that may already be full. The header is a courtesy. The bill is paid at the tail.
At a glance
- RFC 3164 limits the whole legacy syslog packet — PRI, header and content together — to 1,024 bytes.
- §4.3.2 tells a relay to add a missing timestamp and, where it can determine one, a hostname; if that pushes the packet past the ceiling, the relay truncates.
- The RFC says so itself: the dropped bytes may be vital information from the end of the original message.
The header had to fit somewhere
Picture a router shipping a nearly full syslog packet with no usable timestamp. The relay picks it up, reads the priority field, and prepares to forward. Under §4.3.2, the relay must insert its current local timestamp after the PRI field, and should add a hostname when it can determine one. Whatever original material remains becomes the message's CONTENT.
That operation is not free. §4.1 limits the total packet — not merely the event text — to 1,024 bytes. PRI, header and message all spend from one budget. If the timestamp, the hostname and the separating spaces make the rebuilt packet too long, §4.3.2 requires the relay to measure the new length and truncate back to 1,024. The memo states the consequence plainly: information at the end of the original packet, possibly vital, can be lost.
The subtlety is where the loss lands. A collector may receive a perfectly recognizable syslog message. Its PRI and freshly minted header may look immaculate. Yet the event's final bytes — the clause after “because,” a command result, a device identifier, a checksum, the second value in a diagnostic pair — may simply no longer be there. Those are illustrations of what a tail can hold, not incidents this article is claiming. The protocol makes the ending vulnerable the moment enrichment pushes an already long input past the shared limit.
A rule on paper, not a census of deployed relays
This is an instruction inside an August 2001 Informational memo describing the BSD syslog protocol — not evidence that every relay in the field obeyed it. Section 4.2 says a device's original UDP/514 payload may be any valid syslog message, and recommends including the PRI, HEADER and MSG structure because it improves readability and removes the need for relay modification. Section 6.1 separately warns that receivers must not malfunction on messages longer than 1,024 bytes, and describes how receiver behaviour differs.
Neither passage establishes how often real devices emitted long messages, which relays truncated, or what any collector retained.
Nor is the 1,024-byte message ceiling interchangeable with the path MTU. The first is a syslog packet rule in RFC 3164; the second concerns network-layer packet size along a path. IP fragmentation, UDP datagram handling and application-level truncation are three distinct mechanisms wearing similar clothes. A message can fit the protocol's bound while colliding with a smaller path MTU — or blow past the legacy application bound with the path entirely untroubled.
The added values are limited evidence too. The timestamp is the relay's current local time, not necessarily the event's original time. The hostname is the device name as that relay knows it — or its IP address when the name cannot be resolved. RFC 3164 never requires the receiver to validate that hostname against the sender. Enrichment can therefore make a record more legible without proving original event time or cryptographic source identity.
RFC 5424 arrived. The old packets did not leave.
RFC 5424 later obsoleted RFC 3164 with a more explicit syslog header and structured data. RFC 6587 describes TCP framing and notes that the legacy 1,024-octet ceiling was expanded for standardized syslog. RFC 3195 took a different road entirely: its RAW profile limits each event body to 1,024 bytes while excluding BEEP framing overhead. The comparison earns its keep because it shows that “1,024 bytes” can measure quite different things at quite different layers. It does not show that old senders or relays vanished the day a newer RFC was published.
The historical lesson is narrower, and sharper for it: a relay's attempt to improve context spends the same finite budget as the content it is carrying. The resulting packet may still arrive, parse and be stored — and none of those states proves the full original message survived. Establishing that in a real system takes paired evidence: source-side bytes, each relay's input and output, collector parsing, and a later readback. A successful send and a well-formed header prove nothing about the ending.
Sources
- RFC 3164, especially §§4.1, 4.2, 4.3.2–4.3.3 and 6.1: https://www.rfc-editor.org/rfc/rfc3164.html
- RFC 3164 record: https://www.rfc-editor.org/info/rfc3164/
- RFC 5424: https://www.rfc-editor.org/rfc/rfc5424.html
- RFC 5424 record: https://www.rfc-editor.org/info/rfc5424/
- RFC 6587: https://www.rfc-editor.org/rfc/rfc6587.html
- RFC 3195: https://www.rfc-editor.org/rfc/rfc3195.html
- RFC 5425: https://www.rfc-editor.org/rfc/rfc5425.html
- RFC 5426: https://www.rfc-editor.org/rfc/rfc5426.html
- RFC 9742: https://www.rfc-editor.org/rfc/rfc9742.html
- RFC 9662: https://www.rfc-editor.org/rfc/rfc9662.html
- Lu Heng Notes index: https://heng.lu/lu-heng-notes/
- Lu Heng Notes index: https://heng.lu/all-notes/
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






