# Auto\_flush\_interval in multiline codec plugin errors out

**URL:** https://discuss.elastic.co/t/auto-flush-interval-in-multiline-codec-plugin-errors-out/303376
**Category:** Logstash
**Created:** [April 27, 2022, 9:40am UTC](https://discuss.elastic.co/t/auto-flush-interval-in-multiline-codec-plugin-errors-out/303376 "2022-04-27T09:40:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ritesh811](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@ritesh811](https://discuss.elastic.co/u/ritesh811)
#### Post date: [April 27, 2022, 9:40am UTC](https://discuss.elastic.co/t/auto-flush-interval-in-multiline-codec-plugin-errors-out/303376/1 "2022-04-27T09:40:55Z")

</div>

Hi,

I am using auto\_flush\_interval in the multiline codec plugin. It works fine for all the events but when it reaches the end of file, it is throwing grokparsefailure error. And when I remove auto\_flush\_interval, there are no issues(but I will be losing the last event). Can someone please solve this issue?

It looks like when i specify the auto\_flush\_interval =\> 2, it captures the log line (for which grok patterns are written in .conf file) and converts them into the event within those 2 seconds interval, but if any new log lines come after the interval and for those log line we dont have specified grok pattern then this will be throwing error as grokparsefailure, how to handle this.

---

<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: [May 25, 2022, 9:41am UTC](https://discuss.elastic.co/t/auto-flush-interval-in-multiline-codec-plugin-errors-out/303376/2 "2022-05-25T09:41:35Z")

</div>

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