How do I get first line from multiline message by using logstash 1.5?

If use Grok 1.5.x, and want to let it work like Grok 1.4.x, you can add (?-m) before your pattern, disable the default multiline function of 1.5.