This repository was archived by the owner on Dec 14, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments