How to print/trace received xml message from IBMMQ in logstash logs or in file in format of XML

How to print/trace received xml message from IBMMQ in logstash logs or in file ?