A simplified version ML coded of this:
input {
file {
path => "/path/file.log"
sincedb_path => "/dev/null"
start_position => "beginning"
codec => multiline {
pattern => "^<pattern>" # how LS will recognize what is the first line
negate => "true"
what => "previous"
}
}