Logstash update broke redis

Hi,

I updated to Logstash version 5.1.1 and my previous configuration file doesnt work.

The error message is:

[ERROR][logstash.agent ] fetched an invalid config {:config=>"input {\n beats {\n port => 5044\n ssl => true\n ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder.crt"\n ssl_key => "/etc/pki/tls/private/logstash-forwarder.key"\n }\n}\noutput {\n redis {\n host => "192.168.0.5"\n port => "6379"\n password => "password"\n type => "redis-input"\n key => "filebeat"\n data_type => "list"\n , :reason=>"The setting type in plugin redis is obsolete and is no longer available. You can achieve this same behavior with the new conditionals, like: if [type] == \"sometype\" { redis { ... } }. If you have any questions about this, you are invited to visit Logstash - Discuss the Elastic Stack and ask."}

My config is

output {
redis {
host => "192.168.0.5"
port => "6379"
password => "password"
type => "redis-input"
key => "filebeat"
data_type => "list"
}
}

Any help how I should format my config?

output {
  if [type] == "redis" {
    redis {
      ...
    }
  }
}

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