diff --git a/dev-upgrade/elastic/logstash-alert.yaml b/dev-upgrade/elastic/logstash-alert.yaml index 7600640..837036d 100644 --- a/dev-upgrade/elastic/logstash-alert.yaml +++ b/dev-upgrade/elastic/logstash-alert.yaml @@ -72,12 +72,22 @@ data: "message", "\"", " " ] } + mutate { + gsub => [ + "message", "'", "^" + ] + } if [stack_trace] { mutate { gsub => [ "stack_trace", "\n", "_" ] } + mutate { + gsub => [ + "stack_trace", "'", "^" + ] + } mutate { split => { "stack_trace" => "_" } add_field => { "stackFirst" => "%{[stack_trace][0]}" }