Skip to content

Release v0.6.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 05 Feb 15:56
f5ab933

New features

New GUI

Picture showing what the GUI looked like before this change and what it looks like after the change

Logsuck now uses Mantine instead of a homegrown component library, hopefully making it look better.

Support for structured logging in JSON (#7)

image

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 epoch
  • UNIX_MILLIS if your timestamps are in milliseconds from the Unix epoch
  • UNIX_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.