# Redis : Failed to fetch redis info for keyspaces: read tcp xxx-\>xxx i/o timeout

**URL:** <https://discuss.elastic.co/t/redis-failed-to-fetch-redis-info-for-keyspaces-read-tcp-xxx-xxx-i-o-timeout/299161>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 9, 2022, 3:14am UTC](https://discuss.elastic.co/t/redis-failed-to-fetch-redis-info-for-keyspaces-read-tcp-xxx-xxx-i-o-timeout/299161 "2022-03-09T03:14:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![masyutka](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@masyutka](https://discuss.elastic.co/u/masyutka)\
**Post date:** [March 9, 2022, 3:14am UTC](https://discuss.elastic.co/t/redis-failed-to-fetch-redis-info-for-keyspaces-read-tcp-xxx-xxx-i-o-timeout/299161/1 "2022-03-09T03:14:44Z")

</div>

Hi ,

I am trying to use metricbeat (version 7.12.1) module for Redis.  
Redis cluster is managed AWS ElastiCache.

Here is config:

- module: redis  
metricsets: ["info", "keyspace"]  
enabled: true  
period: 2m

I am getting below errors:  
2022-03-09T03:06:12.709Z ERROR redis/redis.go:70 Error retrieving INFO stats: read tcp 192.168.59.219:39884-\>192.168.168.181:6379: i/o timeout

2022-03-09T03:06:12.709Z INFO module/wrapper.go:259 Error fetching data for metricset redis.info: failed to fetch redis info: read tcp 192.168.59.219:39884-\>192.168.168.181:6379: i/o timeout

2022-03-09T03:06:12.710Z ERROR redis/redis.go:70 Error retrieving INFO stats: read tcp 192.168.59.219:39886-\>192.168.168.181:6379: i/o timeout

2022-03-09T03:06:12.710Z INFO module/wrapper.go:259 Error fetching data for metricset redis.keyspace: Failed to fetch redis info for keyspaces: read tcp 192.168.59.219:39886-\>192.168.168.181:6379: i/o timeout

However I can telnet from node where metricbeat is running to Redis [clustercfg.sandboxXXXXXX.amazonaws.com](http://clustercfg.sandboxXXXXXX.amazonaws.com) 6379.

Any suggestion on what could be the reason?

Thanks!

---

<div class="post-metadata">

**Author:** ![Tetiana\_Kravchenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tetiana_kravchenko/32/102683_2.png) [@Tetiana\_Kravchenko](https://discuss.elastic.co/u/Tetiana_Kravchenko)\
**Post date:** [March 15, 2022, 1:28pm UTC](https://discuss.elastic.co/t/redis-failed-to-fetch-redis-info-for-keyspaces-read-tcp-xxx-xxx-i-o-timeout/299161/2 "2022-03-15T13:28:02Z")

</div>

Hi @masyutka!

when you tried to telnet was `clustercfg.sandboxXXXXXX.amazonaws.com` resolved to the same IP as in error logs - `192.168.168.181`?  
did you try to telnet directly to IP?

IP `192.168.59.219` is it IP of the node, where you tried to telnet from?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 12, 2022, 3:28pm UTC](https://discuss.elastic.co/t/redis-failed-to-fetch-redis-info-for-keyspaces-read-tcp-xxx-xxx-i-o-timeout/299161/3 "2022-04-12T15:28:46Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
