More Info:

Ensure that “log_connections” server parameter is enabled for all PostgreSQL database servers available in your Microsoft Azure cloud account. The “log_connections” parameter allows each attempted connection to the database server to be logged, including successful client authentication requests. Only Azure users with administrative privileges can change this parameter at session start, and it cannot be changed during an access session.

Risk Level

Medium

Address

Security

Compliance Standards

CISAZURE, CBP, HITRUST, SOC2, NISTCSF, PCIDSS

Triage and Remediation

Remediation

To enable the “LOG_CONNECTIONS” parameter for PostgreSQL servers in Azure, please follow the below steps:

  1. Login to Azure portal (https://portal.azure.com/)
  2. Navigate to the PostgreSQL server for which you want to enable the parameter.
  3. In the left-hand menu, click on “Settings”.
  4. Under the “Settings” tab, click on the “Configuration” option.
  5. Under the “Parameters” tab, search for the “logging_collector” parameter.
  6. Set the value of “logging_collector” parameter to “on”.
  7. Search for the “log_connections” parameter.
  8. Set the value of “log_connections” parameter to “on”.
  9. Click on the “Save” button to save the changes.

Once you have followed these steps, the “LOG_CONNECTIONS” parameter will be enabled for your PostgreSQL server in Azure.