π 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
- Located in: π Azure PostgreSQL Database
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
RELIABILITY
PERFORMANCE
Similar Policiesβ
- Cloud Conformity
- Internal
dec-x-9b79d91f
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-9b79d91f | 1 |
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Enable
log_checkpoints
onPostgreSQL flexible servers
.Rationaleβ
Enabling
log_checkpoints
helps 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
VALUE
forlog_checkpoints
is set toON
.From Azure CLIβ
Ensure the below command returns a
value
ofon
:az postgres flexible-server parameter show --resource-group <resourceGroup> --server-name <serverName> --name log_checkpoints
From PowerShellβ
Ensure the below command returns a
value
ofon
: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
VALUE
forlog_checkpoints
toON
.- 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 on
From PowerShellβ
Update-AzPostgreSqlFlexibleServerConfiguration -ResourceGroupName <resourceGroup> -ServerName <serverName> -Name log_checkpoints -Value on