π‘οΈ Azure PostgreSQL Flexible Server log_checkpoints Parameter is not set to ONπ’
- Contextual name: π‘οΈ Flexible Server log_checkpoints Parameter is not set to ONπ’
- ID: /ce/ca/azure/postgresql-database/flexible-server-log-checkpoints-parameter
- Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
 
- Policy Type: COMPLIANCE_POLICY
- Policy Categories: RELIABILITY,PERFORMANCE
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- Cloud Conformity: Enable 'LOG_CHECKPOINTS' Parameter for PostgreSQL Servers
- Internal: dec-x-9b79d91f
Similar Internal Rulesβ
| Rule | Policies | Flags | 
|---|---|---|
| βοΈ dec-x-9b79d91f | 1 | 
Descriptionβ
Descriptionβ
Enable
log_checkpointsonPostgreSQL flexible servers.Rationaleβ
Enabling
log_checkpointshelps the PostgreSQL Database toLog each checkpoint, which in turn generates query and error logs. However, access to transaction logs is not supported. Query and error logs can be used to identify, troubleshoot, and repair configuration errors and sub-optimal performance.Auditβ
From Azure Portalβ
- From Azure Home select the Portal Menu.
- Go to
Azure Database for PostgreSQL flexible servers.- For each database, under
Settings, clickServer parameters.- In the filter bar, type
log_checkpoints.- Ensure that the
VALUEforlog_checkpointsis set toON.From Azure CLIβ
Ensure the below command returns a
valueofon:az postgres flexible-server parameter show --resource-group <resourceGroup> --server-name <serverName> --name log_checkpointsFrom PowerShellβ
Ensure the below command returns a
valueofon:Get-AzPostgreSqlFlexibleServerConfiguration -ResourceGroupName <resourceGroup> -ServerName <serverName> -Name log_checkpoints
... [see more](description.md)
Remediationβ
Remediationβ
From Azure Portalβ
- From Azure Home select the Portal Menu.
- Go to
Azure Database for PostgreSQL flexible servers.- For each database, under
Settings, clickServer parameters.- In the filter bar, type
log_checkpoints.- Set the
VALUEforlog_checkpointstoON.- Click
Save.From Azure CLIβ
Use the below command to enable
log_checkpoints:az postgres flexible-server parameter set --resource-group <resourceGroup> --server-name <serverName> --name log_checkpoints --value onFrom PowerShellβ
Update-AzPostgreSqlFlexibleServerConfiguration -ResourceGroupName <resourceGroup> -ServerName <serverName> -Name log_checkpoints -Value on