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

Commit 8760332

Browse files
author
Chris Wiechmann
committed
Update pipeline.conf
1 parent a915d94 commit 8760332

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

logstash/pipeline/pipeline.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,15 @@ filter {
8282
}
8383
if [type] == 'errorEvent' {
8484
# Fill the URI based on the given path to have it shown in Traffic-Monitor
85-
mutate { add_field => { "[correlationId]" => "-Error" } }
8685
mutate { add_field => { "[transactionElements][leg0][protocolInfo][http][uri]" => "%{[transactionSummary][path]}" } }
8786
mutate { replace => { "[transactionElements][leg0][protocolInfo][http][vhost]" => "Logstash Error" } }
8887
mutate { replace => { "[transactionElements][leg0][protocolInfo][http][method]" => "LOGSTASH" } }
8988
mutate { replace => { "[transactionElements][leg0][protocolInfo][http][status]" => "900" } }
9089
mutate { replace => { "[transactionElements][leg0][protocolInfo][http][statusText]" => "ERROR" } }
9190
mutate { replace => { "[transactionElements][leg0][protocolInfo][http][authSubjectId]" => "ID: %{[correlationId]}" } }
9291
mutate { replace => { "[transactionSummary][serviceContext][method]" => "check the logs" } }
92+
# Make sure, the Correlation-ID is unique to avoid an update of the original document
93+
mutate { replace => { "[correlationId]" => "%{[correlationId]-Error" } }
9394
}
9495
}
9596
}

0 commit comments

Comments
 (0)