More Info:

Ensure that the log_planner_stats database flag for a Cloud SQL PostgreSQL instance is set to off.

Risk Level

Low

Address

Reliability, Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the PostgreSQL Log Planner Stats Flag misconfiguration for GCP using GCP console, you can follow the below steps:

  1. Login to your GCP console.
  2. Navigate to the Cloud SQL instances page.
  3. Select the instance that you want to remediate.
  4. Click on the Edit button at the top of the page.
  5. Scroll down to the Flags section and click on the Add flag button.
  6. In the Flag name field, enter “log_planner_stats” (without quotes).
  7. In the Flag value field, enter “off” (without quotes).
  8. Click on the Save button at the bottom of the page to save the changes.

Once you have completed these steps, the PostgreSQL Log Planner Stats flag will be set to off, and the misconfiguration will be remediated.