From 4f0197cf32276aa87f2a24f5dc78fe07f8caae77 Mon Sep 17 00:00:00 2001 From: "zhangkun9038@dingtalk.com" Date: Sat, 17 Sep 2022 07:23:17 +0000 Subject: [PATCH] update --- checkService.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkService.sh b/checkService.sh index 0707d23..4f44c5c 100755 --- a/checkService.sh +++ b/checkService.sh @@ -20,7 +20,7 @@ function uploadLog() identify=$2 count=$3 echo "current user is ${USER}" - journalctl -n $count -xe -${ctype} $identify > ${workPath}/${identify}.log + journalctl -n $count -xe -${ctype} $identify | grep -wv " at " > ${workPath}/${identify}.log ${workPath}/ossutil cp -f ${workPath}/${identify}.log oss://ztupload/${ossLogPath}/logs/${identify}.log if [ $? -eq 0 ]; then echo "ok: log ${identify} uploaded to oss!"