Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit a5ce51c

Browse files
author
Chris Wiechmann
committed
Update OpenTrafficPipeline.conf
1 parent 7169534 commit a5ce51c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

logstash/pipelines/OpenTrafficPipeline.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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" } }

0 commit comments

Comments
 (0)