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

Commit 869eae1

Browse files
author
Chris Wiechmann
committed
Update OpenTrafficPipeline.conf
1 parent 9115e62 commit 869eae1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

logstash/pipelines/OpenTrafficPipeline.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ filter {
2323
remove_field => [ "gatewayRegion", "gatewayName", "[processInfo][serviceName]", "[processInfo][domainId]" ]
2424
add_field => { "[@metadata][ignoreField][apiPath]" => "" } # Default values for apiPath
2525
add_field => { "[@metadata][ignoreField][policyName]" => "" } # and policyName used for ingoreLookup
26+
add_field => { "[@metadata][apiCacheKeyPrefix]" => "" } # Create a default for the cacheKeyPrefix
2627
}
2728

2829
# First, check if the document should be ignored/dropped (configured based on the apiPath or PolicyName)
@@ -54,7 +55,7 @@ filter {
5455
}
5556
mutate { replace => { "[@metadata][ignoreField][apiPath]" => "%{[transactionSummary][path]}" } }
5657
} else if ([transactionElement] and [transactionElement][protocolInfo][http][uri]) { # Additional check for the protocol, as the uri is not given for Non-HTTP legs
57-
mutate { replace => { "[@metadata][ignoreField][apiPath]" => "%{[transactionElement][protocolInfo][http][uri]}" } }
58+
mutate { replace => { "[@metadata][ignoreField][apiPath]" => "%{[transactionSummary][path]}" } }
5859
} else if ([circuitPath] and [circuitPath][0][policy]) { # Policy is for instance not given for OPTIONS requests
5960
mutate { replace => { "[@metadata][ignoreField][policyName]" => "%{[circuitPath][0][policy]}" } }
6061
} else { # For everything else (e.g. JMS-Legs) perform no lookup (Set the default to not ignore)

0 commit comments

Comments
 (0)