Ensure that "log_connections" database parameter is enabled for all PostgreSQL database instances provisioned with RDS in your Alibaba Cloud account. The "log_connections" parameter allows each attempted connection to the database instance to be logged, including successful client authentication requests. By default, the "log_connections" parameter is disabled.
The logging data generated by the "log_connections" database parameter can be used to identify, troubleshoot, and repair configuration errors and sub-optimal performance for your RDS PostgreSQL database instances.
Audit
To determine if "log_connections" parameter is enabled for your RDS PostgreSQL database instances, perform the following operations:
Remediation / Resolution
To enable the "log_connections" database parameter for your RDS PostgreSQL database instances, perform the following operations:
References
- Alibaba Cloud Documentation
- Modify the parameters of an ApsaraDB RDS for PostgreSQL instance
- Use a parameter template to configure the parameters of ApsaraDB RDS for PostgreSQL instances
- Alibaba Cloud CLI Documentation
- DescribeDBInstances
- DescribeParameters
- ModifyParameter