简体   繁体   English

如何访问 AWS ElastiCache 上的 redis 日志

[英]How to access redis logs on AWS ElastiCache

We have been facing latency issues with our redis lately.最近,我们的 redis 一直面临延迟问题。

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 )我们正在尝试调试正在发生的事情,我遇到了这篇文章,它提到查看 redis 日志以调查数据库在后台保存的频率(即使用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.我对如何访问 redis 日志文件进行一些研究,但找不到有关如何在 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.我还尝试从 redis cli 运行monitor命令,但它没有提供有关备份数据库等内容的信息。

How can I access such logs?如何访问此类日志?

Apparently, there is no way to access to the Redis server-side logs ('yet').显然,无法访问 Redis 服务器端日志(“还”)。

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

This feature is available starting with version 6 Redis.此功能从版本 6 Redis 开始可用。

You can now publish logs from your Amazon ElastiCache for Redis clusters to CloudWatch and Kinesis Data Firehose, by enabling slow logs in ElastiCache Console.您现在可以通过在 ElastiCache 控制台中启用慢日志,将日志从 Amazon ElastiCache for Redis 集群发布到 CloudWatch 和 Kinesis Data Firehose。

You can read more details here您可以在此处阅读更多详细信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM