Logstash skips the last line of build.xml file

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