More Info:

Ensure that all your Microsoft Azure PostgreSQL servers have a sufficient log retention period, i.e. greater than 3 days, configured for reliability and compliance purposes. The retention period, represented by the “log_retention_days” parameter, is the number of days to retain log data for the databases hosted on Azure PostgreSQL servers. The compliant value for the retention period is 4 to 7 days

Risk Level

Medium

Address

Security

Compliance Standards

CISAZURE, CBP

Triage and Remediation

Remediation

Sure, I can provide you with the steps to remediate PostgreSQL Log Retention Period misconfiguration in Azure using the Azure console. Here are the steps:

  1. Login to the Azure portal and navigate to the Azure Database for PostgreSQL service.

  2. Select the PostgreSQL server for which you want to remediate the Log Retention Period misconfiguration.

  3. In the left-hand menu, select “Configuration”.

  4. Scroll down to the “Logging” section and locate the “retention_days” parameter.

  5. Update the value of “retention_days” to the desired log retention period (in days).

  6. Click the “Save” button to save the changes.

  7. Verify the changes by checking the “Overview” page of the PostgreSQL server and ensuring that the new retention period is reflected.

That’s it! You have successfully remediated the PostgreSQL Log Retention Period misconfiguration in Azure using the Azure console.