Update Log Monitoring Script
نجحت جميع الفحوصات
CI - Fruit API / build-and-test (push) Successful in 59s
نجحت جميع الفحوصات
CI - Fruit API / build-and-test (push) Successful in 59s
هذا الالتزام موجود في:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
LOG_FILE="fruit_api.log"
|
LOG_FILE="fruit_api.log"
|
||||||
ALERT_URL=" " # Here Any Endpoint
|
# ALERT_URL=" " # Here Any Endpoint
|
||||||
|
|
||||||
tail -Fn0 "$LOG_FILE" | while read line; do
|
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
|
if echo "$line" | grep -qiE "STATUS:(4[0-9]{2}|5[0-9]{2})|failed|timeout|error|exception"; then
|
||||||
|
المرجع في مشكلة جديدة
حظر مستخدم