forked from aquasecurity/cloud-security-remediation-guides
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from rtkwlf/AWN-193028
[AWN-193028] Remediation context for google.mysqlSlowQueryLog
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[![CloudSploit](https://cloudsploit.com/img/logo-new-big-text-100.png "CloudSploit")](https://cloudsploit.com) | ||
|
||
# GOOGLE / SQL / MySQL Slow Query Log Enabled | ||
|
||
## Quick Info | ||
|
||
| | | | ||
|-|-| | ||
| **Plugin Title** | MySQL Slow Query Log Enabled | | ||
| **Cloud** | GOOGLE | | ||
| **Category** | SQL | | ||
| **Description** | Ensures that MySQL instances have slow query log flag enabled. | | ||
| **More Info** | MySQL instance flag that helps find inefficient or time-consuming SQL queries for MySQL databases. | | ||
| **GOOGLE Link** | https://cloud.google.com/sql/docs/mysql/flags | | ||
| **Recommended Action** | Ensure that slow query log flag is enabled for all MySQL instances. | | ||
|
||
## Detailed Remediation Steps | ||
1. 1. Log into the Google Cloud Platform Console. | ||
2. Scroll down the left navigation panel and click on "SQL". | ||
3. On the "SQL" page, select the SQL Instance which needs to be verified by clicking on the checkbox next to its name. | ||
4. Scroll down to the Flags section. | ||
5. To set a flag that has not been set on the instance before, click Add item, choose the `slow_query_log` flag from the drop-down menu, and set its value to `on`. | ||
6. Click Save to save your changes. | ||
7. Confirm your changes under Flags on the Overview page. |