Why it matters
Below WARNING the log omits messages that point to failures and misuse, so problems go unrecorded.
How to fix it
Set the log_min_messages database flag as the benchmark recommends and restart if the engine requires it.
What TrustIvan reads
- Google Cloud: the collector reads what this check needs, so it passes or fails.
Cloud accounts are read with read-only access. These results describe configuration; they are not an attestation that a benchmark is met. The access to grant: Google Cloud.
Benchmark controls
- CIS Google Cloud Platform Foundation Benchmark 3.0.0, control
6.2.5: PostgreSQL log_min_messages is WARNING or stricter
Control numbers are the published ones; the titles are TrustIvan's own short descriptions. The benchmarks belong to their publishers, who do not endorse TrustIvan.
Related checks
- PostgreSQL does not log statements that cause errors
Google CloudSeverity: Low
cloud.database.flag.pg-log-min-error-statement - PostgreSQL does not log DDL statements
Google CloudSeverity: Low
cloud.database.flag.pg-log-statement - PostgreSQL logs statement text by duration
Google CloudSeverity: Low
cloud.database.flag.pg-log-min-duration-statement - PostgreSQL audit logging (pgaudit) is off
Google CloudSeverity: Low
cloud.database.flag.pg-pgaudit - PostgreSQL error logging is more verbose than DEFAULT
Google CloudSeverity: Low
cloud.database.flag.pg-log-error-verbosity - SQL Server allows contained database authentication
Google CloudSeverity: Low
cloud.database.flag.sqlserver-contained-auth
Terms: CSPM (cloud security posture management), CIS Benchmarks, Least privilege
All cloud posture checks · The whole catalogue · How this works in TrustIvan · Documentation