Skip to content

Commit

Permalink
Remediation Guide for GCP PostgreSQL Log Executorr Stats Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mehakseedat63 committed Aug 26, 2023
1 parent 1ff40b8 commit db6fb3c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions en/google/sql/postgresql-log-executor-stats.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[![CloudSploit](https://cloudsploit.com/img/logo-new-big-text-100.png "CloudSploit")](https://cloudsploit.com)

# GOOGLE / SQL / PostgreSQL Log Executor Stats Disabled

## Quick Info

| | |
|-|-|
| **Plugin Title** | PostgreSQL Log Executor Stats Disabled |
| **Cloud** | GOOGLE |
| **Category** | SQL |
| **Description** | Ensures SQL instances for PostgreSQL type have log_executor_stats flag set to "off". |
| **More Info** | To avoid any performance issues caused by an increased volume of logs, it is recommended that the "log_executor_stats" flag is set to off. |
| **GOOGLE Link** | https://cloud.google.com/sql/docs/postgres/flags |
| **Recommended Action** | Ensure that log_executor_stats flag is disabled for all PostgreSQL instances. |

## Detailed Remediation Steps
1. Log into the Google Cloud Platform Console.
2. Scroll down the left navigation panel and click on "SQL". </br> <img src="/resources/google/sql/postgresql-log-executor-stats/step2.png">
3. On the "SQL" page, click on the three dots next to the name of the PostgreSQL Instance which needs to be verified whether it has the log_executor_stats flag enabled or not and click on "Edit".</br> <img src="/resources/google/sql/postgresql-log-executor-stats/step3.png"/>
4. On the "Edit" instance page, scroll down and click on the arrow next to the "Flags" section and check if the log_executor_stats flag is set to "on". If the value is not set, the PostgreSQL instance has the log_executor_stats flag disabled. </br> <img src="/resources/google/sql/postgresql-log-executor-stats/step4.png"/>
5. Repeat steps number 3-4 to check other PostgreSQL Instances in the project.</br>
6. Navigate to "SQL" and click on it. Click on the three dots next to the name of the PostgreSQL Instance which has log_executor_stats flag enabled and click "Edit".</br> <img src="/resources/google/sql/postgresql-log-executor-stats/step3.png"/>
7. On the Edit Instance page, scroll down to the Flags section, expand it and set the value for log_executor_stats flag to "off" or click on the trash icon to remove it altogether. Then click "Save".</br> <img src="/resources/google/sql/postgresql-log-executor-stats/step7.png"/>
8. Repeat steps number 7-8 to disable log_executor_stats flag for all other PostgreSQL Instances in the project.</br>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit db6fb3c

Please sign in to comment.