From 9cbb082f15b57b9e48638775146e97fabbe44d72 Mon Sep 17 00:00:00 2001 From: ycz008 Date: Mon, 1 Apr 2024 15:40:49 +0800 Subject: [PATCH] logstash add field alert field --- build-image/logstash/log-alert.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-image/logstash/log-alert.sh b/build-image/logstash/log-alert.sh index 42eabc9..f290776 100755 --- a/build-image/logstash/log-alert.sh +++ b/build-image/logstash/log-alert.sh @@ -1,8 +1,8 @@ #!/bin/bash # @timestamp serviceName env level message -if (($#!=6));then - echo "./log-alert.sh %{@timestamp} %{serviceName} %{env} %{level} %{message} %{stack_trace}" +if (($#!=7));then + echo "./log-alert.sh %{@timestamp} %{serviceName} %{env} %{level} %{TID} %{message} %{stack_trace}" exit 1 fi