# Supress errors from logstash input plugin

**URL:** <https://discuss.elastic.co/t/supress-errors-from-logstash-input-plugin/253414>\
**Category:** Logstash\
**Created:** [October 27, 2020, 9:36am UTC](https://discuss.elastic.co/t/supress-errors-from-logstash-input-plugin/253414 "2020-10-27T09:36:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitzan.karni](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@nitzan.karni](https://discuss.elastic.co/u/nitzan.karni)\
**Post date:** [October 27, 2020, 9:36am UTC](https://discuss.elastic.co/t/supress-errors-from-logstash-input-plugin/253414/1 "2020-10-27T09:36:07Z")

</div>

Hi,  
I have set up a logstash input for syslog:

```
syslog {
    port => 6514
    codec => cef
    tags => ["syslog"]
}

```

I have different kind of syslogs running through that input.  
I have messages that arrives in cef format, and other that arrive in simple syslog format.  
The problem is when I get regular syslog messages ofcourse the cef codec fails. and thats ok.  
but it spams the logstash-plain and it becomes impossible to debug other problems with that much spam going on.  
Is it possible to suppress errors from that specific input?

---

<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:** [October 27, 2020, 2:15pm UTC](https://discuss.elastic.co/t/supress-errors-from-logstash-input-plugin/253414/2 "2020-10-27T14:15:30Z")

</div>

I do not think you can suppress the [error](https://github.com/logstash-plugins/logstash-codec-cef/blob/2a8edcd5095e811cebfb5d48134eeb32de267067/lib/logstash/codecs/cef.rb#L335), but if you can determine which messages are in cef format you can [route them to a different pipeline](https://discuss.elastic.co/t/logstash-configuration-input-error-with-if-statement/246019/8) and use the codec on that.

---

<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:** [November 24, 2020, 2:15pm UTC](https://discuss.elastic.co/t/supress-errors-from-logstash-input-plugin/253414/3 "2020-11-24T14:15:49Z")

</div>

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