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