I've deployed an EDB cluster on OpenShift, but I'm unable to read the contents of the postgres.json file. Do you happen to know why this might be the case, or if there's a workaround to access the log data?
➜ oc get cluster
NAME AGE INSTANCES READY STATUS PRIMARY
smt 4d 3 3 Cluster in healthy state smt-1
➜
➜ oc rsh -c postgres smt-1
sh-4.4$ psql -U postgres
psql (14.19 (EDB Postgres Extended Server 14.19.0))
Type "help" for help.
postgres=# show log_line_prefix;
log_line_prefix
-----------------------------------------------------
%m [%p][%x]: [%l-1] user=%u,db=%d,app=%a,client=%h
(1 row)
postgres=# show log_directory;
log_directory
-----------------
/controller/log
(1 row)
postgres=# \q
sh-4.4$
sh-4.4$ cd /controller/log
sh-4.4$ ls -l
total 0
prw-------. 1 1000890000 1000890000 0 Nov 3 02:36 edb_audit.csv
prw-------. 1 1000890000 1000890000 0 Nov 3 02:36 postgres
prw-------. 1 1000890000 1000890000 0 Nov 3 02:54 postgres.csv
prw-------. 1 1000890000 1000890000 0 Nov 3 02:44 postgres.json
sh-4.4$
sh-4.4$ more postgres
sh-4.4$ more edb_audit.csv
But I can read file postgres.csv with command:
sh-4.4$ more postgres.csv
2025-11-03 03:50:15.970 CET,,,918,"[local]",69081867.396,1,"",2025-11-03 03:50:15 CET,,0,LOG,00000,"connection received: host=[local]",,,,,,,,,"","not initialized",,0
2025-11-03 03:50:15.971 CET,"postgres","postgres",918,"[local]",69081867.396,2,"authentication",2025-11-03 03:50:15 CET,6/462,0,LOG,00000,"connection authenticated: identity=""1000890000"" method=
peer (/var/lib/postgresql/data/pgdata/pg_hba.conf:7)",,,,,,,,,"","client backend",,0
2025-11-03 03:50:15.971 CET,"postgres","postgres",918,"[local]",69081867.396,3,"authentication",2025-11-03 03:50:15 CET,6/462,0,LOG,00000,"connection authorized: user=postgres database=postgres ap
plication_name=pg_isready",,,,,,,,,"","client backend",,0
2025-11-03 03:50:15.973 CET,"postgres","postgres",918,"[local]",69081867.396,4,"idle",2025-11-03 03:50:15 CET,,0,LOG,00000,"disconnection: session time: 0:00:00.002 user=postgres database=postgres
host=[local]",,,,,,,,,"pg_isready","client backend",,0
2025-11-03 03:50:19.277 CET,,,920,"10.130.3.15:37828",6908186b.398,1,"",2025-11-03 03:50:19 CET,,0,LOG,00000,"connection received: host=10.130.3.15 port=37828",,,,,,,,,"","not initialized",,0
2025-11-03 03:50:19.283 CET,"streaming_replica","postgres",920,"10.130.3.15:37828",6908186b.398,2,"authentication",2025-11-03 03:50:19 CET,6/465,0,LOG,00000,"connection authenticated: identity=""C
N=streaming_replica"" method=cert (/var/lib/postgresql/data/pgdata/pg_hba.conf:10)",,,,,,,,,"","client backend",,0
Another odd thing is that although I've configured log_line_prefix in PostgreSQL, the format of entries in postgres.csv doesn't match the expected structure.
ls -lcommand seems fake. It showstotal 0, which means empty, but then four files. And the files seem to be named pipes (first letterp), so they will behave different from normal files.