# Auto\_flush\_interval not working inside my TCP plugin

**URL:** https://discuss.elastic.co/t/auto-flush-interval-not-working-inside-my-tcp-plugin/242614
**Category:** Logstash
**Created:** [July 25, 2020, 6:23pm UTC](https://discuss.elastic.co/t/auto-flush-interval-not-working-inside-my-tcp-plugin/242614 "2020-07-25T18:23:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dhanshake](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhanshake/32/72200_2.png) [@dhanshake](https://discuss.elastic.co/u/dhanshake)
#### Post date: [July 25, 2020, 6:23pm UTC](https://discuss.elastic.co/t/auto-flush-interval-not-working-inside-my-tcp-plugin/242614/1 "2020-07-25T18:23:27Z")

</div>

I'm using Multiline codec, along with my TCP input plugin.

And the problem I've is logstash is not processing the last line (it waits for the next line always).

Tried using auto\_flush\_interval option as well. But didn't help.

Any suggestions is appreciated.

Logstash version - 6.5.3

---

<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 25, 2020, 9:06pm UTC](https://discuss.elastic.co/t/auto-flush-interval-not-working-inside-my-tcp-plugin/242614/2 "2020-07-25T21:06:21Z")

</div>

Take a look at [this issue](https://github.com/logstash-plugins/logstash-codec-multiline/pull/63), and some others it links to (e.g. #57). Basically a multiline codec is not a good match for a tcp input.

---

<div class="post-metadata">

### Author: ![dhanshake](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhanshake/32/72200_2.png) [@dhanshake](https://discuss.elastic.co/u/dhanshake)
#### Post date: [July 27, 2020, 6:12pm UTC](https://discuss.elastic.co/t/auto-flush-interval-not-working-inside-my-tcp-plugin/242614/3 "2020-07-27T18:12:16Z")

</div>

Any other alternatives to 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: [August 24, 2020, 6:12pm UTC](https://discuss.elastic.co/t/auto-flush-interval-not-working-inside-my-tcp-plugin/242614/4 "2020-08-24T18:12:22Z")

</div>

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