# Logstash update broke redis

**URL:** <https://discuss.elastic.co/t/logstash-update-broke-redis/69289>\
**Category:** Logstash\
**Created:** [December 16, 2016, 12:46pm UTC](https://discuss.elastic.co/t/logstash-update-broke-redis/69289 "2016-12-16T12:46:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xon](https://avatars.discourse-cdn.com/v4/letter/x/838e76/32.png) [@xon](https://discuss.elastic.co/u/xon)\
**Post date:** [December 16, 2016, 12:46pm UTC](https://discuss.elastic.co/t/logstash-update-broke-redis/69289/1 "2016-12-16T12:46:30Z")

</div>

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](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?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [December 20, 2016, 9:11pm UTC](https://discuss.elastic.co/t/logstash-update-broke-redis/69289/2 "2016-12-20T21:11:38Z")

</div>

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

```

---

<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:** [January 17, 2017, 9:11pm UTC](https://discuss.elastic.co/t/logstash-update-broke-redis/69289/3 "2017-01-17T21:11:37Z")

</div>

Closed on January 17, 2017, 9:11pm UTC

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