Policy: Azure > CIS v3.0 > 05 - Database Services > 05.02 - Azure Database for PostgreSQL > 05.02.04 - Ensure server parameter 'logfiles.retention_days' is greater than 3 days for PostgreSQL flexible server
Configures auditing against a CIS Benchmark item.
Level: 1
Ensure logfiles.retention_days on PostgreSQL flexible servers is set to an appropriate value.
Configuring logfiles.retention_days determines the duration in days that Azure Database for PostgreSQL retains log files. Query and error logs can be used to identify, troubleshoot, and repair configuration errors and sub-optimal performance.
Targets
This policy targets the following resource types:
Primary Policy
This policy is used with the following primary policy:
Policy Specification
Schema Type |
|
---|---|
Default |
|
Valid Values [YAML] |
|
Category
In Your Workspace
Developers
- tmod:@turbot/cis#/control/categories/v070604
- tmod:@turbot/azure-cisv3-0#/policy/types/r050204
- turbot graphql policy-type --id "tmod:@turbot/azure-cisv3-0#/policy/types/r050204"
- turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/azure-cisv3-0#/policy/types/r050204"
Get Policy TypeGet Policy Settings
Category URI
Policy Type URI
GraphQL
CLI