From 2a8db5674399385b9c817f23777f23d69219d00a Mon Sep 17 00:00:00 2001 From: ycz008 Date: Thu, 7 Mar 2024 16:25:29 +0800 Subject: [PATCH] logstash log-alert.sd add @all --- 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 a905b90..432183c 100755 --- a/build-image/logstash/log-alert.sh +++ b/build-image/logstash/log-alert.sh @@ -11,7 +11,7 @@ if [[ -z $1 || -z $2 || -z $3 || -z $4 || -z $5 || -z $6 ]];then exit 1 fi -msg="timestamp: $1\nserviceName: $2\nenv: $3\nlevel: $4\nmessage: $5\nstack_trace: $6\n" +msg="timestamp: $1\nserviceName: $2\nenv: $3\nlevel: $4\nmessage: $5\nstack_trace: $6\n\n" #echo -ne $msg -curl -X POST -H "Content-Type: application/json" -d "{\"msg_type\":\"text\",\"content\":{\"text\":\"$msg\"}}" https://open.feishu.cn/open-apis/bot/v2/hook/29dd52e5-70d5-44b0-a443-22ea85382646 \ No newline at end of file +curl -X POST -H "Content-Type: application/json" -d "{\"msg_type\":\"text\",\"content\":{\"text\":\"$msg\"}}" https://open.feishu.cn/open-apis/bot/v2/hook/29dd52e5-70d5-44b0-a443-22ea85382646