How to Parse the XML logs in Logstash and Convert into Json

You may need to use a multiline codec to combine lines so that the entire XML object is in a single event, then use an xml filter to parse it.

There are many threads that discuss this. Here is one.