How do I turn on log delivery for Redis SLOWLOG in an ElastiCache for Redis self-designed cluster?

2 minute read
0

I want to turn on log delivery for Redis SLOWLOG in an Amazon ElastiCache for Redis self-designed cluster.

Resolution

Prerequisites

Use Redis engine version 6.0 or later. If your engine version is earlier than 6.0, then use the slowlog get 128 command to manually retrieve the slow log. Each node has its own slow log and you must collect the log from each node within the cluster.

Create an Identity and Access Management policy that has the required permissions to publish to Amazon CloudWatch Logs or Amazon Data Firehose. Then, attach the policy to the appropriate IAM user.

Turn on log delivery for Redis SLOWLOG in your ElastiCache self-designed cluster

To turn on log delivery for Redis SLOWLOG when you create or modify a cluster, see Specifying log delivery using the Console.

When you turn on log delivery for Redis SLOWLOG, an event is streamed to the log destination when a query exceeds the specified timeframe.

For information about the contents of a slow log entry, see Contents of a slow log entry.

Related information

Log type and log format specifications

AWS OFFICIAL
AWS OFFICIALUpdated 7 months ago