# Logstash Syslog input crashes with a malformed request

**URL:** <https://discuss.elastic.co/t/logstash-syslog-input-crashes-with-a-malformed-request/156449>\
**Category:** Logstash\
**Created:** [November 13, 2018, 10:43am UTC](https://discuss.elastic.co/t/logstash-syslog-input-crashes-with-a-malformed-request/156449 "2018-11-13T10:43:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roberto\_1](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@Roberto\_1](https://discuss.elastic.co/u/Roberto_1)\
**Post date:** [November 13, 2018, 10:43am UTC](https://discuss.elastic.co/t/logstash-syslog-input-crashes-with-a-malformed-request/156449/1 "2018-11-13T10:43:20Z")

</div>

Hello,  
I see that my Logstash, set with a simply Syslog input configuration, crash anytime I test the listening port with Netcat.

Below my Logstash Input configuration.

```
input {
  syslog {
    port => 5000
  }
}
output {
    file {
        path => "/data/logs_dir/log-%{+YYYY-MM-dd}.txt"
        codec => rubydebug
    }
 }

```

When I connect to that port with Netcat, and I try to send some raw data ("test" string, for example), Logstash crashes. Following the crash error log

```
[2018-11-13T11:11:21,388][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

```

I know that sending a custom string via Netcat is not a Syslog, but how can I avoid that, for a malformed request sent to Logstash, the service crashes?

Thank a lot.

Bye,  
Roberto

---

<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:** [December 11, 2018, 10:43am UTC](https://discuss.elastic.co/t/logstash-syslog-input-crashes-with-a-malformed-request/156449/2 "2018-12-11T10:43:39Z")

</div>

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