How to divide XML data into two fields

I have a XML data which gets loaded in logstash and it looks like this in kibana.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.lookup.sdp.bharti.ibm.com">
<soapenv:Header/>
<soapenv:Body>
<web:getLookUpServiceDetails>
<getLookUpService>
<serviceRequester>iOBD</serviceRequester>
<lineOfBusiness>mobility</lineOfBusiness>
</getLookUpService>
</web:getLookUpServiceDetails>
</soapenv:Body>
</soapenv:Envelope><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:getLookUpServiceDetailsResponse xmlns:ns="http://webservices.lookup.sdp.bharti.ibm.com">
<getLookUpServiceReturn>
<errorInfo>
<ErrorCode/>
<ErrorMessage/>
</errorInfo>
</soapenv:Envelope>

and i want to divide the whole XML data into two fields.

My required output :

Request = <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.lookup.sdp.bharti.ibm.com">
    <soapenv:Header/>
    <soapenv:Body>
    <web:getLookUpServiceDetails>
    <getLookUpService>
    <serviceRequester>iOBD</serviceRequester>
    <lineOfBusiness>mobility</lineOfBusiness>
    </getLookUpService>
    </web:getLookUpServiceDetails>
    </soapenv:Body>
    </soapenv:Envelope>

 Response = <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <ns:getLookUpServiceDetailsResponse xmlns:ns="http://webservices.lookup.sdp.bharti.ibm.com">
    <getLookUpServiceReturn>
    <errorInfo>
    <ErrorCode/>
    <ErrorMessage/>
    </errorInfo>
    </soapenv:Envelope>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.