If your logs are delivered in a multi-line format you may want to parse up until a line break in the message. In order to do so, use the following regular expressions as a stop anchor on the line break:
Linux Logs- "\n"
Windows Logs- "\r"
For example, if we have the following message in our logs:
12:08:10,651 INFO sample_server ReportEmailer:178 - DEBUG SENDING MESSAGE:
Subject: New line Breaks in Message
To get firstname.lastname@example.org in the ToAddress column., you can use the following queries to get the address:
... | parse "To:*\n" as ToAddress nodrop
... | parse "To:*\r" as ToAddress nodrop