# Logstash skips the last line of build.xml file

**URL:** <https://discuss.elastic.co/t/logstash-skips-the-last-line-of-build-xml-file/131099>\
**Category:** Logstash\
**Created:** [May 9, 2018, 4:42am UTC](https://discuss.elastic.co/t/logstash-skips-the-last-line-of-build-xml-file/131099 "2018-05-09T04:42:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![arkady\_renko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arkady_renko/32/30160_2.png) [@arkady\_renko](https://discuss.elastic.co/u/arkady_renko)\
**Post date:** [May 9, 2018, 6:10am UTC](https://discuss.elastic.co/t/logstash-skips-the-last-line-of-build-xml-file/131099/2 "2018-05-09T06:10:53Z")

</div>

Similar problem with filebeat. Workaround is adding line feed to last line.

> [@Filebeat - multiline: Ingest XML's without line feed at end of file](https://discuss.elastic.co/t/filebeat-multiline-ingest-xmls-without-line-feed-at-end-of-file/99021/7):
>
> Resolution for me was to write a script that puts a line feed at the end of each XML. Not pretty, but it works.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-skips-the-last-line-of-build-xml-file/131099)._
