json log option
morgoved opened this issue · comments
Hello i use this configuration
- name: SPILO_CONFIGURATION
value: | ## https://github.com/zalando/patroni#yaml-configuration
postgresql:
parameters:
log_destination: jsonlog
logging_collector: on
bootstrap:
postgresql:
parameters:
log_destination: jsonlog
logging_collector: off
initdb:
- auth-host: md5
- auth-local: trust
but i see into output
2024-02-18 11:03:24.463 UTC [2857] LOG: invalid value for parameter "log_destination": "jsonlog"
2024-02-18 11:03:24.463 UTC [2857] DETAIL: Unrecognized key word: "jsonlog".
i use 15 postgres version - it's should works but i don't why it's not working
this is Postgres logs, not Spilo or Patroni. Seems, it is not PG15...
another important thing from the PG docs:
logging_collector must be enabled to generate JSON-format log output.
i builded image with postgres 15 version
i tryed play with on off and it's not help
please execute select version()
hm fixed run upgrade cluster but... i cant see into stdout json logs just in folder)
Sorry, I can not debug it for you. You need to properly configure it based on the PG docs