# Logstash.conf from 5.4 no longer working in 6.3

**URL:** <https://discuss.elastic.co/t/logstash-conf-from-5-4-no-longer-working-in-6-3/137794>\
**Category:** Logstash\
**Created:** [June 28, 2018, 1:42pm UTC](https://discuss.elastic.co/t/logstash-conf-from-5-4-no-longer-working-in-6-3/137794 "2018-06-28T13:42:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew\_michael](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@andrew\_michael](https://discuss.elastic.co/u/andrew_michael)\
**Post date:** [June 28, 2018, 1:42pm UTC](https://discuss.elastic.co/t/logstash-conf-from-5-4-no-longer-working-in-6-3/137794/1 "2018-06-28T13:42:09Z")

</div>

Working on my logstash.conf grok statement.

It seems the part that is not working is the final bit that says:

if [tags] == [] {  
mutate {  
remove\_field =\> ["tags"]  
}  
}

This is logstash 6.3.

Any idea where I've gone wrong. It works in 5.4 which is what I am upgrading.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 2, 2018, 3:32pm UTC](https://discuss.elastic.co/t/logstash-conf-from-5-4-no-longer-working-in-6-3/137794/2 "2018-07-02T15:32:45Z")

</div>

That no longer works in LS 6. You can do it in ruby if having an empty array in your document offends you.

```
    ruby {
        code => '
            if event.get("tags") == []
                event.remove("tags")
            end
        ' 
    }
```

---

<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 30, 2018, 3:32pm UTC](https://discuss.elastic.co/t/logstash-conf-from-5-4-no-longer-working-in-6-3/137794/3 "2018-07-30T15:32:46Z")

</div>

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