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
feita há um mês145 visualizações
1 Resposta
2
Resposta aceita

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
ESPECIALISTA
respondido há um mês
profile picture
ESPECIALISTA
avaliado há um mês
profile picture
ESPECIALISTA
avaliado há um mês

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas