Enabling cloudwatch slowlogs and engine logs for elasticache redis cluster
I'm trying to create log streams for slow logs and engine logs for elastic cache redis.
Redis returns this error : "Failed to grant access to log group <logGroup>. Check the length of the resource policy document". I have tried to add a resource policy in order to enable cloudwatch logs access but it doesn't work. Do you have any Idea ? Thanks a lot for your support
One of the problems for this error could be that your resource policies are violating the CloudWatch Logs resource policy size restrictions.
Please note that CloudWatch Logs resource policies are limited to 5120 characters as stated in the documentation, see reference .
To avoid reaching the CloudWatch Logs resource policy size limit, prefix your CloudWatch Logs log group names with /aws/vendedlogs/.
Also please take note that Redis Slow Log is supported for Redis cache clusters and replication groups using engine version 6.0 onward whilst Redis Engine Log is supported for Redis cache clusters and replication groups using engine version 6.2 onward, see reference .
It is also important to note that you must set the apply-immediately parameter for all log delivery modifications.
Make sure that you include the following IAM permissions in your IAM user/role policy (also see reference ):
Problem upgrading AWS ElastiCache Redis clusterasked 4 months ago
Elasticache for Redis cluster service update got stuckasked 4 months ago
Elasticache Redis 6 multi-threading enabled?asked a month ago
Combatibility with redis api for testing mockupsasked 2 years ago
Accessing Elastic Cache Redis from Celery in a docker-compose locallyasked 25 days ago
Enabling cloudwatch slowlogs and engine logs for elasticache redis clusterasked 21 days ago
Elastic BeanStalk can't connect to ElastiCache Redisasked 21 days ago
ElastiCache for Redis load distributionasked 5 months ago
Error on browser to open "redis create cluster"asked 3 months ago
Amazon Aurora Postgresql views be loaded to ElastiCache for Redisasked 5 months ago