Skip to main content
Version: 1.2.0

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 messageID47
STRUCTURED-DATAOptional structured key-value pairs[exampleSDID@32473 iut="3"]
MESSAGEFree-form message contentThis is a structured log message.

Facility Values

CodeFacility
0kernel messages
1user-level messages
2mail system
......
1623local0 to local7

Severity Levels

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