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

Commit 7c19f33

Browse files
author
Chris Wiechmann
committed
Update OpenTrafficPipeline.conf
1 parent fdf51bd commit 7c19f33

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
@@ -24,6 +24,9 @@ filter {
2424
add_field => { "[@metadata][ignoreField][apiPath]" => "" } # Default values for apiPath
2525
add_field => { "[@metadata][ignoreField][policyName]" => "" } # and policyName used for ingoreLookup
2626
}
27+
28+
# First, check if the document should be ignored/dropped (configured based on the apiPath or PolicyName)
29+
2730
# Create a cache key for the API either on the complete received request path or if configured, only using a specific part of the path.
2831
# This prevents API requests with path parameters from not being cached efficiently due to their variable parameter.
2932
# Example: API-Request: /v1/get/pet/687687678, Configured-Path: /v1/get/pet - API-Details cached based on Configured-Path (/v1/get/pet)
@@ -49,9 +52,6 @@ filter {
4952
end
5053
'
5154
}
52-
}
53-
# First, is to check if the document should be ignored/dropped (configured based on the apiPath or PolicyName)
54-
if([transactionSummary] and [transactionSummary][path]) { # Only if a path is given (not given for instance for Scheduled-Policies)
5555
mutate { replace => { "[@metadata][ignoreField][apiPath]" => "%{[transactionSummary][path]}" } }
5656
} else if ([transactionElement] and [transactionElement][protocolInfo][http][uri]) { # uri is not given for Non-HTTP legs
5757
mutate { replace => { "[@metadata][ignoreField][apiPath]" => "%{[transactionElement][protocolInfo][http][uri]}" } }

0 commit comments

Comments
 (0)