Re: Proposal: Adding json logging - Mailing list pgsql-hackers

From John W Higgins
Subject Re: Proposal: Adding json logging
Date
Msg-id CAPhAwGxo9g3nuu7mONeZAWMt+oNHrY+OnLE46Mka0b-3JnBv_w@mail.gmail.com
Whole thread Raw
In response to Re: Proposal: Adding json logging  (David Arnold <dar@xoe.solutions>)
List pgsql-hackers


On Sun, Apr 15, 2018 at 10:39 AM, David Arnold <dar@xoe.solutions> wrote:
>More specifically, JSON logging does seem to be a solution in search of a problem.  PostgreSQL's CSV logs are very easy to machine-parse, and if there are corrupt lines being emitted there, the first step should be to fix those, rather than introduce a new "this time, for sure" logging method.

>It's a matter of a few lines of code to convert CSV logs to a JSON format, if you need JSON format for something else.

In the light of the specific use case / problem for this thread to be born, what exactly would you suggest?

This would appear to solve multiline issues within Fluent.....

https://docs.fluentd.org/v0.12/articles/parser_multiline

John

pgsql-hackers by date:

Previous
From: Christophe Pettus
Date:
Subject: Re: Proposal: Adding json logging
Next
From: David Arnold
Date:
Subject: Re: Proposal: Adding json logging