# Filebeat redis logstash

**URL:** <https://discuss.elastic.co/t/filebeat-redis-logstash/50671>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 23, 2016, 7:32am UTC](https://discuss.elastic.co/t/filebeat-redis-logstash/50671 "2016-05-23T07:32:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandhya\_Rathinapandi](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@Sandhya\_Rathinapandi](https://discuss.elastic.co/u/Sandhya_Rathinapandi)\
**Post date:** [May 23, 2016, 7:32am UTC](https://discuss.elastic.co/t/filebeat-redis-logstash/50671/1 "2016-05-23T07:32:04Z")

</div>

Hi

We are trying to configure Filebeat-\> redis-\> logstash-\> elasticsearch.  
But getting the following error.

```auto
Redis connection problem {:exception=>#<Redis::CannotConnectError: Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)>, :level=>:warn} 

```

My configurations 🙂  
Filebeat:

```auto
filebeat:
  prospectors:
    -
      paths:
        - "/usr/local/etc/trafficserver/logs/squid.log"
      input_type: log
      document_type: trafficserver
    -
      paths:
        - "/var/log/apache2/reverseproxy_ats-access.log"
      input_type: log
      document_type: apache
output:
  redis:
    host: "localhost"
    port: 6379
    key: logstash
    data_typ: "list"

```

Logstash:

```auto
input {
    redis {
     host => "localhost"
     port => 6379
     type => "redis-input"
     data_type => "list"
     key => "logstash"
   }
}

```

Kindly help us in resolving this issue.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [May 23, 2016, 10:23am UTC](https://discuss.elastic.co/t/filebeat-redis-logstash/50671/2 "2016-05-23T10:23:58Z")

</div>

Check out the logstash error message:

```auto
CannotConnectError: Error connecting to Redis on localhost:6379

```

Is redis running? Is redis listening on port 6379? Is logstash and redis running on same host? Will redis accept connections from localhost? Try `telnet localhost 6379`.

Filebeat redis output config it must say `datatype`, not `data_typ` + use `index: logstash` instead of `key: logstash`.

Which filebeat version have you installed. It's not recommended to use filebeat 1.x releases with redis output.

---

<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:** [July 5, 2017, 9:51pm UTC](https://discuss.elastic.co/t/filebeat-redis-logstash/50671/3 "2017-07-05T21:51:39Z")

</div>


