Azure-PostgreSQLServer-Log-Disconnections-Enabled
Severity: Medium
Description: This control ensures that server parameter "log_disconnections" is set to "ON" for PostgreSQL Database Server. Enabling log retention helps PostgreSQL Database to set the number of days a log file is retained which in turn generates query and error logs. Query and error logs can be used to identify, troubleshoot, and repair configuration errors and sub-optimal performance.
Remediation Steps:
Perform following to update PostgreSQL parameters:
LoLogin to Azure Portal using https://portal.azure.com.
Go to PostgreSQL server.
For each database, click on Server parameters.
Search for log_disconnections.
Click ON and save.
Important:
Reference:
CIS Microsoft Azure Foundations Benchmark v1.3.0 - 02-01-2021 : Recommendation #4.3.5
https://docs.microsoft.com/en-us/rest/api/postgresql/configurations/listbyserver
Blue Hexagon Proprietary