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 {
25
25
add_field => { "[@metadata][ignoreField][policyName]" => "" } # and policyName used for ingoreLookup
26
26
}
27
27
# 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)
29
29
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
31
31
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
33
33
mutate { replace => { "[@metadata][ignoreField][policyName]" => "%{[circuitPath][0][policy]}" } }
34
34
} else { # For everything else (e.g. JMS-Legs) perform no lookup (Set the default to not ignore)
35
35
mutate { add_field => { "[isIgnoreAPI][ignore]" => "false" } }
You can’t perform that action at this time.
0 commit comments