# Issue with file input multiline codec

**URL:** <https://discuss.elastic.co/t/issue-with-file-input-multiline-codec/66269>\
**Category:** Logstash\
**Created:** [November 16, 2016, 4:50pm UTC](https://discuss.elastic.co/t/issue-with-file-input-multiline-codec/66269 "2016-11-16T16:50:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sjivan](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@sjivan](https://discuss.elastic.co/u/sjivan)\
**Post date:** [November 17, 2016, 12:48pm UTC](https://discuss.elastic.co/t/issue-with-file-input-multiline-codec/66269/2 "2016-11-17T12:48:41Z")

</div>

I found a related issue [https://github.com/logstash-plugins/logstash-input-file/issues/90](https://github.com/logstash-plugins/logstash-input-file/issues/90) which mentions that auto\_flush needs to be set via the auto\_flush\_interval codec parameter. Once I set auto\_flush\_interval =\> 3 I observed the desired behavior.

```
file {
    path => "c:/temp/test.log"
    start_position => beginning
    sincedb_path => "NUL"
    ignore_older => 0
    codec => multiline {
        pattern => "^%{MONTHDAY} %{MONTH} %{YEAR} %{TIME}"
        negate => true
        what => previous
        auto_flush_interval => 3
    }       
}
```

---

_[View the full topic](https://discuss.elastic.co/t/issue-with-file-input-multiline-codec/66269)._
