Skip to content

Conversion Word for logfmt based markers #397

Open
@wsargent

Description

@wsargent

Markers are great when outputting JSON, but when rendering in a line based format, they don't do so well.

As an example, here's the output in JSON:

{"id":"FgEdic8a562dHaINzdiAAA","relative_ns":55243400,"tse_ms":1585963041084,"start_ms":null,"@timestamp":"2020-04-04T01:17:21.084Z","@version":"1","message":"herp derp  arg1=value1 numericArg=42 booleanArg=false a=b sequenceArg=[a, b, c]","logger_name":"example.Main$","thread_name":"main","level":"INFO","level_value":20000,"string":"steve","number":42,"boolean":true,"markerJson":{
  "f1" : "v1"
},"array":["one","two","three"],"arg1":"value1","numericArg":42,"booleanArg":false,"a":"b","sequenceArg":["a","b","c"]}

and here's the output in line based format, using %marker:

FgEdic8a562dHaINzdiAAA 2020-04-04T01:17:21.084+0000 [INFO ] example.Main$ in main HashSet(string=steve, number=42, boolean=true, DEFERRED, array=[one, two, three]) [ LS_APPEND_OBJECT, LS_APPEND_OBJECT, LS_APPEND_OBJECT, DEFERRED, LS_APPEND_OBJECT ] - herp derp  arg1=value1 numericArg=42 booleanArg=false a=b sequenceArg=[a, b, c]

It'd be great to have a conversion word that turned the markers into logfmt:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions