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

Commit 1ab59f4

Browse files
author
Chris Wiechmann
committed
Update OpenTrafficPipeline.conf
1 parent 3389844 commit 1ab59f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logstash/pipelines/OpenTrafficPipeline.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ filter {
2424
add_field => { "[@metadata][ignoreField][apiPath]" => "" } # Default values for apiPath
2525
add_field => { "[@metadata][ignoreField][policyName]" => "" } # and policyName used for ingoreLookup
2626
add_field => { "[@metadata][apiCacheKeyPrefix]" => "" } # Create a default for the cacheKeyPrefix
27+
add_field => { "[@metadata][cacheAPIPaths]" => "${CACHE_API_PATHS:''}" }
2728
}
2829

2930
# Check if the document should be ignored/dropped (configured based on the apiPath or PolicyName)
@@ -176,7 +177,6 @@ filter {
176177
if([transactionSummary][serviceContext][service]) {
177178
mutate {
178179
add_field => { "[@metadata][apiName]" => "%{[transactionSummary][serviceContext][service]}" }
179-
add_field => { "[@metadata][cacheAPIPaths]" => "${CACHE_API_PATHS:''}" }
180180
}
181181
} else {
182182
# Without an API name, only API path is used for the API lookup.

0 commit comments

Comments
 (0)