This repository was archived by the owner on Dec 14, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ filter {
2525 add_field => { "[@metadata][ignoreField][policyName]" => "" } # and policyName used for ingoreLookup
2626 }
2727 # First, is to check if the document should be ignored/dropped (configured based on the apiPath or PolicyName)
28- if([transactionSummary]) {
28+ if([transactionSummary] and [transactionSummary][path] ) { # Only if a path is given (not given for instance for Scheduled-Policies)
2929 mutate { replace => { "[@metadata][ignoreField][apiPath]" => "%{[transactionSummary][path]}" } }
30- } else if ([transactionElement]) {
30+ } else if ([transactionElement] and [transactionElement][protocolInfo][http][uri] ) { # uri is not given for Non-HTTP legs
3131 mutate { replace => { "[@metadata][ignoreField][apiPath]" => "%{[transactionElement][protocolInfo][http][uri]}" } }
32- } else if ([circuitPath]) {
32+ } else if ([circuitPath] and [circuitPath][0][policy] ) { # Policy is for instance not given for OPTIONS requests
3333 mutate { replace => { "[@metadata][ignoreField][policyName]" => "%{[circuitPath][0][policy]}" } }
3434 } else { # For everything else (e.g. JMS-Legs) perform no lookup (Set the default to not ignore)
3535 mutate { add_field => { "[isIgnoreAPI][ignore]" => "false" } }
You can’t perform that action at this time.
0 commit comments