How to parse xml log inside of the json format in Logstash

I will receive a log that contained JSON and XML format
I configurated the Logstash to receive TCP in JSON and used the filter when shown dateparsefailure in tags.
The JSON part is able to extract, but the xml part can't.
Could anyone give me some advice?