3 ms·
So syslog supports structured logs via JSON natively now.
by kanwisher 10y ago
So syslog supports structured logs via JSON natively now.
- justinsaccount 10y agoHi, author here :-) Does syslog actually support this? I mean, you can send a JSON blob as part of the MSG field, but you still need to send the PRI VERSION TIMESTAMP HOSTNAME APP-NAME PROCID MSGID header. You can't just send something like {"ts": "2016-09-..", "host": "www1", "proc": "nginx", ..} to a syslog server and have it understand it. We do ship some json logs in rsyslog using imfile, but that's a bit different.