3 ms·
RFC5424 Syslog defines some the common stuff all logs should have: hostname, app name, datetime, message, priority. Many logging tools (Splunk, Loggly, etc.) c
by paulddraper 10y ago
RFC5424 Syslog defines some the common stuff all logs should have: hostname, app name, datetime, message, priority.
Many logging tools (Splunk, Loggly, etc.) consume syslog. Syslog works over UDP and TCP. Java Logback has a syslog appender. Linux systems have rsyslog for forwarding, writing, etc.
You'll wind up including your own custom structured data of course (IP address, response time, user id etc.), but it's nice use a recognized standard for the standard parts. (Kind of like, say, using status code, cache-control, and content-type in HTTP.)
- eeZah7Ux 10y agoThe RFC defines key-value structured logging. https://tools.ietf.org/html/rfc5424#section-6.3.5 https://tools.ietf.org/html/rfc5424#section-6.3.5