More Info:

Ensure that the log_parser_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 Parser Stats Flag Should Be Off misconfiguration in GCP using the GCP console, follow these steps:

  1. Open the GCP Console and navigate to the Cloud SQL instances page.
  2. Click on the name of the instance that has the PostgreSQL Log Parser Stats Flag Should Be Off misconfiguration.
  3. In the left-hand menu, click on the Configuration tab.
  4. Scroll down to the Flags section and click on Edit.
  5. In the Flags editor, search for the log_parser_stats flag.
  6. If the log_parser_stats flag is set to ON, toggle it to OFF.
  7. Click Save to apply the changes.

Once the changes are saved, the PostgreSQL Log Parser Stats Flag will be turned off and the misconfiguration will be remediated.