Logstash XML file parsing - awkward Splitting event Problem

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 }