quarkus icon indicating copy to clipboard operation
quarkus copied to clipboard

Support JSON logging for syslog

Open agreedSkiing opened this issue 2 years ago • 0 comments

Description

Currently json format logging is only supported in the console and an implementation for json logging to file is in progress of being released for quarkus 2.10 (#25505), but the syslog message is still written in plain text as shown below after syslog our parser has picked up the message and transformed it into json (pretty print for readability)

{
  "timestamp": "2022-06-03T13:30:56.129000Z",
  "pri": "14",
  "time": "2022-06-03T13:30:56.129+00:00",
  "host": "test",
  "ident": "backend",
  "pid": "1",
  "msgid": "io.agroal.pool",
  "extradata": "-",
  "message": "2022-06-03 13:30:56,129 INFO  [io.agr.pool] (main) Datasource '<default>': Initial size smaller than min. Connections will be created when necessary"
}

Is it possible to update quarkus.log.*.json with a quarkus.log.syslog.json now that quarkus.log.console.json and quarkus.log.file.json will be supported in the future? This would make all the standard quarkus logging configurations support json out of the box when if the quarkus-logging-json artefact is added.

This might be a duplicate of #23127 so feel free to close if it is

Implementation ideas

No response

agreedSkiing avatar Jun 03 '22 13:06 agreedSkiing