Skip to main content

Syslog

Standard protocol for system logging:

Message Format

RFC 3164:

FieldDescriptionExample Value
PRIPriority value = Facility * 8 + Severity, enclosed in angle brackets<34>
TIMESTAMPDate and time in "Mmm dd hh:mm:ss" formatOct 22 12:34:56
HOSTNAMEHostname or IP address of the sender<hostname>
TAGApplication name and optional PIDappname[1234]
MESSAGEFree-form message contentThis is a log message.

RFC 5424:

FieldDescriptionExample Value
PRIPriority value = Facility * 8 + Severity, enclosed in angle brackets<34>
VERSIONSyslog protocol version (always 1 for RFC 5424)1
TIMESTAMPISO 8601 timestamp with optional timezone2025-01-03T14:07:15.003Z
HOSTNAMEFQDN or IP address of the senderhost.example.com
APP-NAMEApplication nameappname
PROCIDProcess ID1234
MSGIDIdentifier for the type of message. Surfaced as unmapped, not msgidID47
STRUCTURED-DATAOptional structured key-value pairs[exampleSDID@32473 iut="3"]
MESSAGEFree-form message contentThis is a structured log message.

Facility Values

The RFC names each facility as prose. DataStream emits a short label instead, in log.syslog.facility.name—filter on the emitted name, not the RFC description.

CodeRFC DescriptionEmitted Name
0kernel messagesKernel
1user-level messagesUser
2mail systemMail
3system daemonsSystem
4security/authorization messagesSecurity
5messages generated internally by syslogdSyslogd
6line printer subsystemLine printer
7network news subsystemNetwork news
8UUCP subsystemUUCP
9clock daemonClock
10security/authorization messagesSecurity
11FTP daemonFTPd
12NTP subsystemNTPd
13log auditLog audit
14log alertLog alert
15clock daemonClock daemon
1623local use 0 through 7Local 0 to Local 7

Severity Levels

CodeLevel
0Emergency
1Alert
2Critical
3Error
4Warning
5Notice
6Informational
7Debug

These names are emitted verbatim in log.syslog.severity.name.

Parsing Behavior

The format is detected rather than declared. After the PRI, a single digit followed by a space is read as the RFC 5424 VERSION; anything else is parsed as RFC 3164.

A message with no PRI is accepted, not rejected. It is treated as facility 0 and severity 6.

Beyond the RFC fields, parsing produces:

FieldDescription
formatSet to CEF or LEEF when the message body is in one of those formats. Vendor-prefixed variants such as ASM:CEF:0 are recognized, and the body is rewritten to begin at the format marker
structured_dataRFC 5424 structured data, parsed into key-value pairs. Also accepts the Check Point dialect, which uses colons and semicolons and often omits the element identifier
pid_rawThe process identifier when it is not numeric, which RFC 5424 permits
unmappedThe token in the MSGID position, and any other unrecognized trailing header token

format is the field most worth knowing about: downstream routing commonly branches on it to send CEF and LEEF traffic through the right pipeline.

Structured data is not available when the syslog processor writes directly to a table, as the table has no column for nested parameters.