Technology · Culture · Change
Sign inJoin us
TechTrends NowFollow the next shiftTechnology · Culture · Change
← Latest news

From Dev.to

用 Drain3 把 log 變成「新樣板才通知」:不用寫一堆關鍵字規則(附可跑的範例)

一句話結論:與其替每種錯誤寫關鍵字規則,不如讓 Drain3 把 log 歸納成「樣板」,只在出現沒看過的樣板時通知一次。已知的問題不吵你,新的問題才會冒出來。 最常見的 log 告警做法是:log 裡出現 error,就通知。 這種規則在第一週還算好用,很快就會變成噪音。一個依賴服務重啟,幾百行 connection refused 一起噴出來,通知響不停。看完才發現是已知問題,下次又響。 接著...

Read the full report at Dev.to ↗