diff --git a/agent-chart/values.yaml b/agent-chart/values.yaml index 79d6c4ff..5fe1c7a8 100644 --- a/agent-chart/values.yaml +++ b/agent-chart/values.yaml @@ -85,6 +85,10 @@ db: log_min_duration_statement: '10s' log_autovacuum_min_duration: 0 log_destination: 'csvlog' + log_filename: 'postgresql-%d.log' + log_rotation_age: '1d' + log_rotation_size: '100MB' + log_truncate_on_rotation: on ssl: off timezone: "UTC" password_encryption: scram-sha-256 diff --git a/chart/values.yaml b/chart/values.yaml index 18664ffd..0c59e4f6 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -112,12 +112,13 @@ db: log_destination: "stderr" log_directory: "/var/log/postgresql" log_file_mode: 0644 - log_filename: "postgresql.log" + log_filename: "postgresql-%d.log" log_line_prefix: "%m [%p] %q[user=%u,db=%d,app=%a] " log_lock_waits: on log_min_duration_statement: "1s" - log_rotation_age: 0 - log_rotation_size: 0 + log_rotation_age: '1d' + log_rotation_size: '100MB' + log_truncate_on_rotation: on log_statement: "all" log_temp_files: 0 log_timezone: "UTC"