Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 2.15 KB

log-connections-enabled.md

File metadata and controls

26 lines (21 loc) · 2.15 KB

CloudSploit

AZURE / PostgreSQL Server / Log Connections Enabled

Quick Info

Plugin Title Log Connections Enabled
Cloud AZURE
Category PostgreSQL Server
Description Ensures connection logs are enabled for PostgreSQL servers
More Info Connection logs ensure all attempted and successful connections to the server are logged.
AZURE Link https://docs.microsoft.com/en-us/azure/postgresql/howto-configure-server-parameters-using-portal
Recommended Action Ensure the server parameters for each PostgreSQL server have the log_connections setting enabled.

Detailed Remediation Steps

  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.
  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.
  4. Scroll down the left navigation panel and choose "Server parameters" under "Settings."
  5. On the "Server parameters" page, search for "log_connections" paramter using the "Search for filter item search box." If the value is set to "OFF" then the "Log Connections" are not enabled for PostgreSQL servers. This is against Azure best practices.
  6. To enable "log_connections" select "ON" from the toggle configuration button.
  7. Click on the "Save" button at the top to make the changes.
  8. Repeat step number 3 - 7 to ensure the server parameters for each PostgreSQL server have the log_connections setting enabled.