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

Commit 9115e62

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

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
@@ -53,16 +53,16 @@ filter {
5353
'
5454
}
5555
mutate { replace => { "[@metadata][ignoreField][apiPath]" => "%{[transactionSummary][path]}" } }
56-
} else if ([transactionElement] and [transactionElement][protocolInfo][http][uri]) { # uri is not given for Non-HTTP legs
56+
} else if ([transactionElement] and [transactionElement][protocolInfo][http][uri]) { # Additional check for the protocol, as the uri is not given for Non-HTTP legs
5757
mutate { replace => { "[@metadata][ignoreField][apiPath]" => "%{[transactionElement][protocolInfo][http][uri]}" } }
5858
} else if ([circuitPath] and [circuitPath][0][policy]) { # Policy is for instance not given for OPTIONS requests
5959
mutate { replace => { "[@metadata][ignoreField][policyName]" => "%{[circuitPath][0][policy]}" } }
6060
} else { # For everything else (e.g. JMS-Legs) perform no lookup (Set the default to not ignore)
6161
mutate { add_field => { "[isIgnoreAPI][ignore]" => "false" } }
6262
}
63-
# Create a cache key for the Policy
63+
# Create a cache key for the event, either on API-Path or Policy-Name
6464
mutate {
65-
add_field => { "[@metadata][ignoreLookupCacheKey]" => "%{[@metadata][ignoreField][apiPath]}###%{[@metadata][ignoreField][policyName]}" }
65+
add_field => { "[@metadata][ignoreLookupCacheKey]" => "%{[@metadata][apiCacheKeyPrefix]}###%{[@metadata][ignoreField][policyName]}" }
6666
}
6767
# Lookup the cache is the document should be ignored
6868
memcached {

0 commit comments

Comments
 (0)