Why it matters
Logs kept for three days or less are gone before most intrusions are noticed.
How to fix it
Set the logfiles.retention_days database flag as the benchmark recommends and restart if the engine requires it.
What TrustIvan reads
- Microsoft Azure: the collector does not read this yet, so the check reports not assessed, never a pass.
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: Microsoft Azure.
Benchmark controls
- CIS Microsoft Azure Foundations Benchmark 2.1.0, control
4.3.6: PostgreSQL log retention exceeds 3 days
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 disconnections
AzureSeverity: Low
cloud.database.flag.azure-pg-log-disconnections - MySQL allows LOAD DATA LOCAL
Google CloudSeverity: Low
cloud.database.flag.mysql-local-infile - PostgreSQL does not log connections
AzureSeverity: Low
cloud.database.flag.azure-pg-log-connections - MySQL lists every database to every user
Google CloudSeverity: Low
cloud.database.flag.mysql-skip-show-database - PostgreSQL does not log checkpoints
AzureSeverity: Low
cloud.database.flag.azure-pg-log-checkpoints - PostgreSQL does not log connections
Google CloudSeverity: Low
cloud.database.flag.pg-log-connections
Terms: CSPM (cloud security posture management), CIS Benchmarks, Least privilege
All cloud posture checks · The whole catalogue · How this works in TrustIvan · Documentation