Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to know which particular path of an App gateway request fails.
You can use the Access Logs of Azure App gateway to filter out failed requests.
Refer : How to enable logging through the Azure portal
Under Access Logs, the requestUri field should give the exact path with which the request came in.
In case you have enabled rewrite rules, you can also use the "originalRequestUriWithArgs" field
Hope this helps.
Cheers,
Kapil
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.