# Logstash Does Not Read In Last Line of Log

**URL:** <https://discuss.elastic.co/t/logstash-does-not-read-in-last-line-of-log/2706>\
**Category:** Logstash\
**Created:** [June 15, 2015, 2:43pm UTC](https://discuss.elastic.co/t/logstash-does-not-read-in-last-line-of-log/2706 "2015-06-15T14:43:31Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![sumitkgaur](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@sumitkgaur](https://discuss.elastic.co/u/sumitkgaur)\
**Post date:** [September 7, 2016, 8:18am UTC](https://discuss.elastic.co/t/logstash-does-not-read-in-last-line-of-log/2706/14 "2016-09-07T08:18:27Z")

</div>

Multiline filter has been deprecated in favor of multiline-codec But the problem still persist with codec .  
Does anybody has any workaround ? Last line of the logs is not getting processed

input {  
beats {  
port =\> 5044  
codec =\> multiline {  
pattern =\> "^\s"  
negate =\> "true"  
what =\> "previous"  
}  
}  
}

---

_[View the full topic](https://discuss.elastic.co/t/logstash-does-not-read-in-last-line-of-log/2706)._
