Logstash update broke redis


(xt) #1

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 https://discuss.elastic.co/c/logstash 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?


(Magnus B├Ąck) #2
output {
  if [type] == "redis" {
    redis {
      ...
    }
  }
}

(system) #3

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