Ниже я работал для меня.
codec => multiline{ pattern => "^\s*\d{1,}\|" negate => "true" what => "previous" }