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
gefragt vor einem Monat145 Aufrufe
1 Antwort
2
Akzeptierte Antwort

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
EXPERTE
beantwortet vor einem Monat
profile picture
EXPERTE
überprüft vor einem Monat
profile picture
EXPERTE
überprüft vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen