Log file monitoring with multiline support

I have a logfile with messages over multiple lines. check_logfiles doesn’t seem to have support for it. Is there a way to monitor such logfiles?

A single message always starts with a typical pattern. All lines related to this message will start without matching this pattern.