# Logstash XML file parsing - awkward Splitting event Problem

**URL:** <https://discuss.elastic.co/t/logstash-xml-file-parsing-awkward-splitting-event-problem/174906>\
**Category:** Logstash\
**Created:** [April 2, 2019, 5:03am UTC](https://discuss.elastic.co/t/logstash-xml-file-parsing-awkward-splitting-event-problem/174906 "2019-04-02T05:03:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 3, 2019, 1:51pm UTC](https://discuss.elastic.co/t/logstash-xml-file-parsing-awkward-splitting-event-problem/174906/4 "2019-04-03T13:51:44Z")

</div>

Does a file contain multiple root elements? If not, you can consume the entire file using a pattern that never matches and a timeout. For example

```
codec => multiline { pattern => "^Spalanzani" what => "previous" negate => true auto_flush_interval => 1 }
```

---

_[View the full topic](https://discuss.elastic.co/t/logstash-xml-file-parsing-awkward-splitting-event-problem/174906)._
