Re: Add jsonlog log_destination for JSON server logs
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Andres Freund <andres@anarazel.de>, Sehrope Sarkuni <sehrope@jackdb.com>, Pg Hackers <pgsql-hackers@postgresql.org>, david@fetter.org
Date: 2022-01-10T12:48:31Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Introduce log_destination=jsonlog
- dc686681e079 15.0 landed
-
Refactor set of routines specific to elog.c
- ac7c80758a7a 15.0 landed
-
Fix compilation warning in syslogger.c
- 05c4248ad1bf 15.0 landed
-
Refactor per-destination file rotation in logging collector
- 5c6e33f07153 15.0 landed
-
Refactor output file handling when forking syslogger under EXEC_BACKEND
- 5b0b699f748e 15.0 landed
-
Add regression tests for csvlog with the logging collector
- 72b76f76161c 15.0 landed
-
Refactor the syslogger pipe protocol to use a bitmask for its options
- 2d77d835403a 15.0 landed
Attachments
- v9-0001-Some-refactoring-of-elog-specific-routines.patch (text/x-diff) patch v9-0001
- v9-0002-Refactor-CSV-specific-code-into-its-own-file.patch (text/x-diff) patch v9-0002
- v9-0003-JSON-logging.patch (text/x-diff) patch v9-0003
On Fri, Jan 07, 2022 at 03:49:47PM +0900, Michael Paquier wrote: > Yes, I was waiting for the latest results, but that did not help at > all. Something is wrong with the patch, I am not sure what yet, but > that seems like a mistake in the backend part of it rather than the > tests. I have switched the CF entry as waiting on author until this > is addressed. The issue comes from an incorrect change in syslogger_parseArgs() where I missed that the incrementation of argv by 3 has no need to be changed. A build with -DEXEC_BACKEND is enough to show the failure, which caused a crash when starting up the syslogger because of a NULL pointer dereference. The attached v9 should be enough to switch the CF bot to green. -- Michael