Xmpp multiline output

Need an advice how to create logstash xmpp alert message with "newlines". Various replaces with gsub, googled by myself isn't work.
Thanks