networking, updated

Syslog

Syslog sends log messages from devices and servers to a central collector. It is the backbone of most SIEM pipelines, and in its classic form it is unauthenticated, unencrypted and can silently drop messages.

OSI layer
7 Application
Carried in
UDP, TCP, TLS
Ports
514/udp, 514/tcp (common, not registered), 6514/tcp (TLS)
Specs
RFC 5424, RFC 3164, RFC 5426, RFC 5425, RFC 6587
Wireshark filter
syslog
Encrypted
no

Packet structure

A syslog message is one line of text. The modern format (RFC 5424):

<165>1 2026-10-28T14:03:12.481Z fw01.example.com sshd 4123 ID47 [origin ip="10.0.0.1"] Failed password for root from 203.0.113.9 port 51022 ssh2
 │   │ │                        │                │    │    │    │                    └ MSG: free text (UTF-8)
 │   │ │                        │                │    │    │    └ STRUCTURED-DATA: [id key="value" ...] or "-"
 │   │ │                        │                │    │    └ MSGID: message type, or "-"
 │   │ │                        │                │    └ PROCID: process ID, or "-"
 │   │ │                        │                └ APP-NAME
 │   │ │                        └ HOSTNAME
 │   │ └ TIMESTAMP (RFC 3339, with time zone)
 │   └ VERSION: 1
 └ PRI: facility × 8 + severity  (165 = 20 × 8 + 5 → local4.notice)

The older BSD format (RFC 3164), still sent by most network devices: <34>Oct 28 14:03:12 fw01 sshd[4123]: Failed password for root .... It has no year, no time zone and no structure beyond the tag.

SeverityNameFacilityName
0Emergency0kern
1Alert1user
2Critical3daemon
3Error4auth
4Warning10authpriv
5Notice13log audit
6Informational16–23local0–local7 (network devices, appliances)
7Debug

How it works

Devices and servers (the originators) send messages to a collector (rsyslog, syslog-ng, a SIEM agent), sometimes through relays. There is no handshake and no reply:

In Wireshark

FilterShows
syslogSyslog over UDP 514 (and TCP if decoded)
syslog.level <= 3Errors and worse
syslog.facility == 4 || syslog.facility == 10Authentication messages
syslog.msg contains "Failed password"Search the message text
udp.port == 514 && !syslogNon-syslog traffic on the syslog port
tcp.port == 6514Syslog over TLS

For TCP on other ports use Decode As › Syslog.

What normal looks like: a steady stream from many devices to one or two collectors. A device that suddenly stops sending is as interesting as one that sends a burst: attackers disable logging or flood it. Syslog from outside the management network, or to an unknown collector, is suspicious.

Security notes

References

§ home
~/knubertus/home/
1,1 Top