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

Commit 39713f5

Browse files
author
Chris Wiechmann
committed
Adjust / Fix the way how Scheduled-Policies are shown
1 parent 72c84ae commit 39713f5

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ API_BUILDER_URL=http://elk-traffic-monitor-api:8080
2626
# The Connection/URL to the Admin-Node-Manager.
2727
# !!!! IMPORTANT NOTE !!!!
2828
# This URL must be reachable/resolveable from within the API-Builder Docker-Container!
29-
ADMIN_NODE_MANAGER=https://api-env:8090
29+
ADMIN_NODE_MANAGER=https://172.17.0.1:8090
3030

3131
# ----------------------------------------------------------------------------------------------
3232
# The Connection/URL to the API-Manager. If not given, the same as Admin-Node-Manager URL with
3333
# port 8075 is used.
3434
# !!!! IMPORTANT NOTE !!!!
3535
# This URL must be reachable/resolveable from within the API-Builder Docker-Container!
36-
# API_MANAGER=https://api-env:8075
36+
# API_MANAGER=https://172.17.0.1:8075
3737

3838
# ----------------------------------------------------------------------------------------------
3939
# This user is used by API-Builder to lookup APIs & User-Information in API-Manager.

logstash/pipeline/pipeline.conf

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,21 @@ filter {
2323
}
2424
# Schedule-Policy event - Most of the properties are NULL
2525
if([correlationId]!="000000000000000000000000" and ![circuitPath] and ![transactionElement] and ![transactionSummary][path] and ![transactionSummary][protocol] and ![transactionSummary][protocolSrc]) {
26-
mutate { add_field => { "[type]" => "scheduledPolicy" } }
27-
mutate { add_field => { "[transactionElements][leg0][serviceName]" => "Scheduled policy" } }
28-
mutate { add_field => { "[transactionElements][leg0][operation]" => "N/A" } }
29-
mutate { add_field => { "[transactionElements][leg0][duration]" => "-1" } }
30-
mutate { add_field => { "[transactionElements][leg0][finalStatus]" => "Pass" } }
31-
mutate { add_field => { "[transactionElements][leg0][protocolInfo][http][uri]" => "N/A" } }
32-
mutate { add_field => { "[transactionElements][leg0][protocolInfo][http][status]" => "901" } }
33-
mutate { add_field => { "[transactionElements][leg0][protocolInfo][http][statusText]" => "OK" } }
34-
mutate { add_field => { "[transactionElements][leg0][protocolInfo][http][method]" => "N/A" } }
26+
mutate {
27+
add_field => {
28+
"[type]" => "scheduledPolicy"
29+
"[transactionSummary][serviceContext][service]" => "Scheduled policy"
30+
"[transactionSummary][serviceContext][method]" => "N/A"
31+
"[transactionElements][leg0][operation]" => "N/A"
32+
"[transactionElements][leg0][duration]" => "-1"
33+
"[transactionElements][leg0][finalStatus]" => "Pass"
34+
"[transactionElements][leg0][protocolInfo][http][uri]" => "N/A"
35+
"[transactionElements][leg0][protocolInfo][http][status]" => "901"
36+
"[transactionElements][leg0][protocolInfo][http][statusText]" => "OK"
37+
"[transactionElements][leg0][protocolInfo][http][method]" => "N/A"
38+
}
39+
remove_field => "[transactionSummary][serviceContexts]"
40+
}
3541
# If a transactionElement event is received it must be re-arragended to support up-serts into ES
3642
} else if([transactionElement]) {
3743
ruby {

0 commit comments

Comments
 (0)