More Info:

The log_parser_stats flag enables a crude profiling method for logging parser performance statistics which even though can be useful for troubleshooting, it may increase the amount of logs significantly and have performance overhead.

Risk Level

Low

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the “PostgreSQL Log Temp Files Flag Should Be 0” misconfiguration in GCP using the GCP console, follow the steps below:

  1. Open the GCP Console and navigate to the Cloud SQL instances page.
  2. Select the instance that you want to remediate.
  3. In the instance details page, click on the “Edit” button at the top of the page.
  4. Scroll down to the “Flags” section and click on the “Add item” button.
  5. In the “Flag name” field, enter “log_temp_files” (without the quotes).
  6. In the “Flag value” field, enter “0” (without the quotes).
  7. Click on the “Save” button at the bottom of the page.

Once you have completed these steps, the “log_temp_files” flag will be set to 0, which will remediate the misconfiguration.