# Metricbeat redis error while retrieving INFO and KEYSPACE stats

**URL:** <https://discuss.elastic.co/t/metricbeat-redis-error-while-retrieving-info-and-keyspace-stats/196555>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [August 23, 2019, 3:24pm UTC](https://discuss.elastic.co/t/metricbeat-redis-error-while-retrieving-info-and-keyspace-stats/196555 "2019-08-23T15:24:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishwanathh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishwanathh/32/51337_2.png) [@vishwanathh](https://discuss.elastic.co/u/vishwanathh)\
**Post date:** [August 23, 2019, 3:24pm UTC](https://discuss.elastic.co/t/metricbeat-redis-error-while-retrieving-info-and-keyspace-stats/196555/1 "2019-08-23T15:24:19Z")

</div>

Hello,

I had enabled the metricbeat redis module and below is my YML configuration:

- module: redis  
metricsets: ["info","keyspace"]  
period: 10s

- module: redis  
metricsets: ["key"]  
key.patterns:

When i start metricbeat, I get errors like:  
ERROR redis/redis/go:70 Error retrieving INFO stats: dial tcp: missing address  
INFO module/wrapper.go:244 Error fetching data for metricset redis.keyspace: Failed to fetch redis info for keyspaces: dial tcp: missing address

I'm not getting the datasets for info and keyspace on elasticsearch, however this works for dataset : redis.key.\*

Please suggest what's wrong going on here?

Thanks,  
Vishwa.

---

<div class="post-metadata">

**Author:** ![vishwanathh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishwanathh/32/51337_2.png) [@vishwanathh](https://discuss.elastic.co/u/vishwanathh)\
**Post date:** [August 23, 2019, 3:32pm UTC](https://discuss.elastic.co/t/metricbeat-redis-error-while-retrieving-info-and-keyspace-stats/196555/2 "2019-08-23T15:32:16Z")

</div>

I've fixed this myself. I had to define the host per module and noticed I had defined module: redis twice in the yml for the metricsets.

---

<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:** [September 20, 2019, 3:32pm UTC](https://discuss.elastic.co/t/metricbeat-redis-error-while-retrieving-info-and-keyspace-stats/196555/3 "2019-09-20T15:32:21Z")

</div>

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