sclorg / postgresql-container

PostgreSQL container images based on Red Hat Software Collections and intended for OpenShift and general usage. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
http://softwarecollections.org
Apache License 2.0
164 stars 216 forks source link

Add option to log lines in JSON #502

Open rgordill opened 1 year ago

rgordill commented 1 year ago

This feature provides better support for ingesters that processes json to structure the logs, like elasticsearch, loki, etc.

https://www.postgresql.org/docs/current/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-JSONLOG

rgordill commented 1 year ago

For your records, that would be only available from v15: https://www.postgresql.org/docs/release/15.0/