Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access redis logs on AWS ElastiCache

We have been facing latency issues with our redis lately.

We are trying to debug what's going on, I came across this post and it mentioned going over the redis logs to investigate how often the db is saved in the background (ie using bgsave)

I did some research on how to access the redis logs file but couldn't find anything on how to find it on AWS ElastiCache. I also tried running the monitor command from the redis cli but it's not giving me information about stuff like backing up the database etc.

How can I access such logs?

like image 618
abbood Avatar asked Jun 07 '19 06:06

abbood


People also ask

How do I check my AWS ElastiCache data?

Sign in to the AWS Management Console and open the Amazon ElastiCache console at https://console.aws.amazon.com/elasticache/ . In the ElastiCache console dashboard, choose Redis to display a list of all your clusters that are running any version of Redis.

What is Redis engine logs?

The Redis engine log provides visibility into the internal operations of the Redis engine, giving additional insight into Redis operations and helping you troubleshoot Redis issues. You can choose to send these logs in either JSON or text format to Amazon CloudWatch Logs and Amazon Kinesis Data Firehose.

How do I access Redis cluster?

Open the Command Prompt and change to the Redis directory and run the command c:\Redis>redis-cli -h Redis_Cluster_Endpoint -p 6379 . Run Redis commands. You are now connected to the cluster and can run Redis commands like the following.

Is Redis and ElastiCache same?

ElastiCache supports Memcached and Redis. On the other hand, Redis is detailed as "An in-memory database that persists on disk". Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.


1 Answers

Apparently, there is no way to access to the Redis server-side logs ('yet').

src: https://forums.aws.amazon.com/thread.jspa?threadID=219210

like image 176
M. Gleria Avatar answered Sep 19 '22 17:09

M. Gleria