Skip to content

Commit c950aa2

Browse files
committed
Log (dis)connections to PostgreSQL
Configure PostgreSQL to log all successful client connections (log_connectsions = on) and all events related to disconnections of the client (log_disconnections = on).
1 parent e2975e3 commit c950aa2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/controller/assets/postgres.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ ssl_key_file = '/etc/certs/tls.key'
77
# (sslcert/sslkey) to PostgreSQL, so ssl_ca_file has no effect (even when pg_hba.conf
88
# is correctly configured for mTLS)
99
# ssl_ca_file = '<none>'
10+
log_connections = on
11+
log_disconnections = on

0 commit comments

Comments
 (0)