This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/bash
|
||||
LOG_FILE="fruit_api.log"
|
||||
ALERT_URL=" " # Here Any Endpoint
|
||||
# ALERT_URL=" " # Here Any Endpoint
|
||||
|
||||
tail -Fn0 "$LOG_FILE" | while read line; do
|
||||
if echo "$line" | grep -qiE "STATUS:(4[0-9]{2}|5[0-9]{2})|failed|timeout|error|exception"; then
|
||||
|
||||
Reference in New Issue
Block a user