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
preguntada hace un mes145 visualizaciones
1 Respuesta
2
Respuesta aceptada

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
EXPERTO
respondido hace un mes
profile picture
EXPERTO
revisado hace un mes
profile picture
EXPERTO
revisado hace un mes

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas