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

Commit 0647c43

Browse files
author
Chris Wiechmann
committed
Test with a more valid configuration
1 parent 33d970f commit 0647c43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/logstash.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
# This is not relevant as we test with HTTP
7171
# But it's required by Logstash to be a valid certificate
7272
API_BUILDER_SSL_CERT: "./config/certificates/apibuilder4elastic.crt"
73-
CACHE_API_PER_NAME: "/petstore/v2/user/chris, /api/v1/banana, /api/v2/banana"
73+
CACHE_API_PER_NAME: "/petstore/v2, /api/v1/banana, /api/v2/banana"
7474
- name: API-Builder Logs
7575
if: ${{ always() }}
7676
run: |

logstash/pipelines/OpenTrafficPipeline.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ filter {
163163
event.set("[@metadata][apiCacheKeyPrefix]", apiRequestPath);
164164
for configuredPath in cacheAPINames.split(",") do
165165
if(apiRequestPath.start_with?(configuredPath) )
166-
logger.info("Using API-Name as primary cache key, because path is configured. ", { "apiName" => apiName, "configuredPath" => configuredPath, "apiRequestPath" => apiRequestPath });
166+
logger.info("Using API-Name as primary cache key, because of configured path match. ", { "apiName" => apiName, "configuredPath" => configuredPath, "apiRequestPath" => apiRequestPath });
167167
event.set("[@metadata][apiCacheKeyPrefix]", apiName);
168168
break;
169169
end

0 commit comments

Comments
 (0)