# File input not reading last line (Logstash)

**URL:** https://discuss.elastic.co/t/file-input-not-reading-last-line-logstash/211464
**Category:** Logstash
**Created:** [December 11, 2019, 12:17pm UTC](https://discuss.elastic.co/t/file-input-not-reading-last-line-logstash/211464 "2019-12-11T12:17:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ganesh999](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@Ganesh999](https://discuss.elastic.co/u/Ganesh999)
#### Post date: [December 11, 2019, 12:17pm UTC](https://discuss.elastic.co/t/file-input-not-reading-last-line-logstash/211464/1 "2019-12-11T12:17:41Z")

</div>

Hi ,

I have been facing issue in parsing log file. As the documentation says a new line will be needed for logstash/filebeat to read the last line. i have added a new line but still it is not reading the last line.  
Also setting auto flush interval for multiline codec it is still not reading the last line.

---

<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: [January 8, 2020, 12:17pm UTC](https://discuss.elastic.co/t/file-input-not-reading-last-line-logstash/211464/2 "2020-01-08T12:17:46Z")

</div>

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