Skip to content

Commit

Permalink
Patch 529 (#550)
Browse files Browse the repository at this point in the history
* Update log-retention-period.md

* Update log-retention-period.md

* Images updated for all steps

* Images updated

* Update log-retention-period.md

* Update en/azure/postgresqlserver/log-retention-period.md

* Update en/azure/postgresqlserver/log-retention-period.md

Co-authored-by: alphadev4 <[email protected]>
  • Loading branch information
shuklaalok87 and alphadev4 authored Oct 19, 2022
1 parent 92c59c9 commit 22c2977
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions en/azure/postgresqlserver/log-retention-period.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@

## Detailed Remediation Steps

1. Log into the Microsoft Azure Management Console.
1. Log in to the Microsoft Azure Management Console.
2. Select the "Search resources, services, and docs" option at the top and search for PostgreSQL. </br> <img src="/resources/azure/postgresqlserver/log-retention-period/step2.png"/>
3. On the "Azure Database for PostgreSQL servers" page, select the database by clicking on the "Name" as a link that needs to be examine.</br> <img src="/resources/azure/postgresqlserver/log-retention-period/step3.png"/>
3. On the "Azure Database for PostgreSQL servers" page, select the database by clicking on the "Name" as a link that needs to be examined.</br> <img src="/resources/azure/postgresqlserver/log-retention-period/step3.png"/>
4. Scroll down the left navigation panel and choose "Server parameters" under "Settings."</br> <img src="/resources/azure/postgresqlserver/log-retention-period/step4.png"/>
5. On the "Server parameters" page, search for "log_retention_days" paramter using the "Search for filter item search box." If the value is set to less than "3 days" then the "log_retention_days" is not as per best practices for PostgreSQL servers.</br> <img src="/resources/azure/postgresqlserver/log-retention-period/step5.png"/>
6. Repeat steps number 2 - 5 to verify other "PostgreSQL" databases in the account.</br>
7. Navigate to "PostgreSQL", select the database by clicking on the "Name" and choose "Server parameters" under "Settings" from the left navigation panel.</br> <img src="/resources/azure/postgresqlserver/log-retention-period/step7.png"/>
8. On "Server Parameter" page, search for "log_retention_days" paramter using the "Search for filter item search box" and set the "log_retention_days" more than "4 days."</br> <img src="/resources/azure/postgresqlserver/log-retention-period/step8.png"/>
9. Click on the "Save" button at the top to make the changes.</br> <img src="/resources/azure/postgresqlserver/log-retention-period/step9.png"/>
10. Repeat steps number 7 - 9 to ensure the server parameters for each PostgreSQL server have the log_retention_days setting set to 4 or more days.</br>
6. To increase the value of log_retention_days set the "log_retention_days" by typing the "Value" to more than "4" days in the textbox.</br> <img src="/resources/azure/postgresqlserver/log-retention-period/step6.png"/>
7. Click on the "Save" button at the top to make the changes.</br> <img src="/resources/azure/postgresqlserver/log-retention-period/step7.png"/>
8. Repeat step number 3 - 7 to ensure the server parameters for each PostgreSQL server have the log_retention_days setting set to 4 or more days.</br>
Binary file modified resources/azure/postgresqlserver/log-retention-period/step2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/azure/postgresqlserver/log-retention-period/step3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/azure/postgresqlserver/log-retention-period/step4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/azure/postgresqlserver/log-retention-period/step5.png
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.
Binary file modified resources/azure/postgresqlserver/log-retention-period/step7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.

0 comments on commit 22c2977

Please sign in to comment.