Turn off logging for RDS Proxy

0

Hello, how can the logging of RDS Proxy be turned off or at least set to ERROR level instead of INFO? My RDS Proxy spams my CloudWatch with connecting and disconnecting INFO messages that are not relevant for me. My CloudWatch costs are up just because of these logs. I don't have "Enhanced logging" turned on and never had. I also set the log_connect log_disconnect of my RDS Postgres instance to false but that didn't change anything. It seems like this feature is missing in the settings of RDS proxy, as its also not documented anywhere.

PP
asked 25 days ago106 views
1 Answer
2
Accepted Answer

Hello, unfortunately there isn't a setting within RDS Proxy itself to change the log level or turn off logging. However, a few options you could try:

You can configure log exports on the underlying database instance (Postgres in your case) to send fewer log types to CloudWatch Logs. This would reduce the volume of logs without disabling them completely.

If you have enabled enhanced logging on the proxy, you could turn this off. Enhanced logging provides more detailed information but with additional overhead.

As a last resort, you could filter the log events in CloudWatch Logs to exclude the specific info-level messages that are generating the most costs for you. This would keep some logging enabled while removing the high-volume messages.

https://aws.amazon.com/getting-started/hands-on/set-up-shared-database-connection-amazon-rds-proxy/

profile picture
EXPERT
answered 25 days ago
profile picture
EXPERT
reviewed 25 days ago
profile picture
EXPERT
reviewed 25 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions