New features
New GUI
Logsuck now uses Mantine instead of a homegrown component library, hopefully making it look better.
Support for structured logging in JSON (#7)
Logsuck can now parse structured logs which use JSON. Key-value pairs in the JSON object are automatically extracted as fields. You can configure this by setting parser.type
to JSON
on a fileType, or by using the configuration GUI. An example fileType configuration may look like:
{
"name": "json-log",
"timeLayout": "UNIX_DECIMAL_NANOS",
"parser": {
"type": "JSON",
"jsonConfig": {
"eventDelimiter": "\n",
"timeField": "ts"
}
}
},
Support for UNIX timestamps
Logsuck now has support for three types of UNIX timestamps. You can access this functionality by setting timeLayout to one of the following:
UNIX
if your timestamps are in seconds from the Unix epochUNIX_MILLIS
if your timestamps are in milliseconds from the Unix epochUNIX_DECIMAL_NANOS
if your timestamps are in this format:<UNIX>.<NANOS>
where<UNIX>
is the number of seconds since the Unix epoch and<NANOS>
are the number of nanoseconds elapsed in that second. This is the format used by zap by default.