Joachim Wiberg
November 25, 2019
Local disk format
Aug 24 05:14:15 192.0.2.1 Kilroy was here.Remote syslog format (wire)
<23>Kilroy was here.Standardization of the 4.3BSD syslogd format and behavior
<PRI>Month Day-of-month Time-of-day <MSG>
PRI := (facility << 3) | severity
MSG := [Hostname] [Process[pid]:] text… many systems use facility codes differently
Local disk format
Aug 24 05:14:15 192.0.2.1 myproc[8710]: Kilroy was here.Remote syslog format (wire)
<23>Aug 24 05:14:15 192.0.2.1 myproc[8710]: Kilroy was here.Changes everything!
<PRI>1 Timestamp Hostname App-name ProcID MsgID SD MSGLocal disk format
2019-11-04T00:50:15.001234+01:00 troglobit myproc 8710 - - Kilroy was here.Remote syslog format (wire)
<23>1 2019-11-04T00:50:15.001234+01:00 troglobit myproc 8710 - - Kilroy was here.Structured Data:
[exampleSDID@32473 iut="3" eventSource="Application" eventID="1011"]example:
openlog("example", LOG_PID, LOG_USER);
syslogp(LOG_NOTICE, "MSGID", NULL, "Kilroy was here.");
closelog();Join the discussion on GitHub or
#troglobit on Liberachat if IRC is more your thing.