How to fetch substring from responseMessage

How can I extract the string available after the text "Request failed || " and display it in grafana?
The string is errorId from failed HTTP request. I want to create a widget that shows errorId against the corresponding HTTP request.