Logstash file input/output with multiline codec

You could do that using mutate+gsub.