Skip to content

Commit 48eae91

Browse files
APM-2884 Correct handle splunk collector fault rule
1 parent ec08e48 commit 48eae91

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

proxies/live/apiproxy/proxies/default.xml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,11 @@
6060
<Condition>(proxy.pathsuffix MatchesPath "/_status") and ((request.verb = "GET") or (request.verb = "HEAD"))</Condition>
6161
</RouteRule>
6262
<FaultRules>
63-
<FaultRule name="AuthError">
64-
<Step>
65-
<Name>AssignMessage.OAuthPolicyErrorResponse</Name>
66-
</Step>
67-
<Condition>(RaiseFault.401Unauthorized.failed=true)</Condition>
68-
</FaultRule>
6963
<FaultRule name="SplunkError">
7064
<Step>
7165
<Name>AssignMessage.HandleSplunkHec</Name>
7266
</Step>
73-
<Condition>((proxy.pathsuffix MatchesPath "/status") and (request.verb = "GET")) or ((proxy.pathsuffix MatchesPath "/_status") and ((request.verb = "GET") or (request.verb = "HEAD")))
67+
<Condition>(((proxy.pathsuffix MatchesPath "/status") and (request.verb = "GET")) or ((proxy.pathsuffix MatchesPath "/_status") and ((request.verb = "GET") or (request.verb = "HEAD")))) and (splunkCalloutResponse isNot null)
7468
</Condition>
7569
</FaultRule>
7670
</FaultRules>

0 commit comments

Comments
 (0)