Filebeat redis logstash

Hi

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

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

My configurations :slight_smile:
Filebeat:

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:

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

Kindly help us in resolving this issue.

Check out the logstash error message:

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.