logstash add field alert field

main
ycz008 2024-04-01 15:40:49 +08:00
parent b79397287b
commit 9cbb082f15
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
# @timestamp serviceName env level message # @timestamp serviceName env level message
if (($#!=6));then if (($#!=7));then
echo "./log-alert.sh %{@timestamp} %{serviceName} %{env} %{level} %{message} %{stack_trace}" echo "./log-alert.sh %{@timestamp} %{serviceName} %{env} %{level} %{TID} %{message} %{stack_trace}"
exit 1 exit 1
fi fi