# Multiline: flush downstream error -\> NPE

**URL:** <https://discuss.elastic.co/t/multiline-flush-downstream-error-npe/116761>\
**Category:** Logstash\
**Created:** [January 23, 2018, 10:06pm UTC](https://discuss.elastic.co/t/multiline-flush-downstream-error-npe/116761 "2018-01-23T22:06:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitavmohanty01](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amitavmohanty01/32/58017_2.png) [@amitavmohanty01](https://discuss.elastic.co/u/amitavmohanty01)\
**Post date:** [January 23, 2018, 10:06pm UTC](https://discuss.elastic.co/t/multiline-flush-downstream-error-npe/116761/1 "2018-01-23T22:06:52Z")

</div>

I have a setup of filebeats pushing data to LS which in turn pushes data to ES. I was harvesting on a few files to pump data. To test potential speedup, I started 2 filebeat processes each processing a half of the set of files. I started getting the following error in LS.

> [2018-01-23T13:50:33,627][INFO][org.logstash.beats.BeatsHandler] Exception: Connection reset by peer  
> [2018-01-23T13:51:23,380][ERROR][logstash.codecs.multiline] Multiline: flush downstream error {:exception=\>java.lang.NullPointerException}  
> [2018-01-23T13:51:23,380][ERROR][logstash.codecs.multiline] Multiline: flush downstream error {:exception=\>java.lang.NullPointerException}  
> [2018-01-23T13:51:23,521][ERROR][logstash.codecs.multiline] Multiline: flush downstream error {:exception=\>java.lang.NullPointerException}

The error does not indicate what is the reason for the NPE here. Should I be filing a bug report? I am using filebeat 5.6.4.

---

<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:** [February 20, 2018, 10:07pm UTC](https://discuss.elastic.co/t/multiline-flush-downstream-error-npe/116761/2 "2018-02-20T22:07:03Z")

</div>

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