Capture original error instead of default error

Hello @dchiesa1 and Team

I have a special requirement. Require your's suggestions to implement quickly.

Shared flow on post proxy flow hook - we have a shared flow with message logging policy to push the logs into the splunk.

Shared on fault rules - we have a another shared flow named handle faults which contains javascript policy to handle all type of erros like 401,403,404,405 and finally default error.

Our requirement is if any policy out of the above status code fails for example spike arrest policy failed , flow is going to error state faultrules are executing and throwing default error and another shared flow pushing the default error to splunk as a one of the json field.

Here it was being tough to identify the exact error because mostly all errors are being default.

So, we want to capture exact error for example "spike arrest failed" instead of default error "system down for maintenance" as variable/flow variable and will create a new json field with name policy error inside the flowhook shared flow to push logs ro splunk 

0 REPLIES 0