Alerts

Custom rules

Add a custom rule when a particular pattern in your logs matters to your team. Rules belong to the selected project and are optional on paid plans. Automatic alerts run independently.

Choose which logs count

In your project, open Alerts → Create Custom Rules and give the rule a recognizable name, such as “Checkout payment failures”. If your service emits a log named payment.failed, choose Event name, select Equals to, and enter that value. Add Environment equal to production to exclude development traffic. Each log must match every condition. A rule supports up to five conditions.

Set the threshold

Set At least this many matches to 5 and Within minutes to 10. This rule reaches its threshold when five matching production payment failures occur within ten minutes. Choose values that reflect how frequently your service handles payments.

Find the saved rule

Select Create Rules, then open the Custom tab in Alerts. The rule card shows its conditions, threshold, status, and last trigger time when available.

Found something unexpected? Let us know.