logstash add field alert field
parent
b79397287b
commit
9cbb082f15
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue