Alerts
Create an Alert Rule
Set up real-time condition rules using the Web Dashboard or programmatic REST API.
Creating via Dashboard
- Go to the Alerts page in your Dashboard.
- Click “New Alert”.
- Specify the rule name, app name, condition fields, threshold count, and window duration.
- Provide your destination
webhook_urland cooldown period (e.g.5m). - Click “Save Alert”.
Creating via REST API
curl -X POST https://api.api.notlogs.site/api/v1/alert \
-H "Content-Type: application/json" \
-H "Authorization: Bearer SEL_YOUR_API_KEY" \
-d '{
"name": "Production Database Timeouts",
"appName": "ecommerce-api",
"conditions": [
{ "field": "Type", "operator": "equals", "value": "error" },
{ "field": "Subsystem", "operator": "equals", "value": "db" },
{ "field": "Message", "operator": "contains", "value": "connection timeout" }
],
"threshold": {
"count": 3,
"windowMinutes": 5
},
"webhook": {
"url": "https://api.yourdomain.com/webhooks/logs-alert"
},
"cooldownPeriod": "15m",
"summary": "Triggers when 3 DB timeouts happen within 5 minutes"
}'Alert Quotas by Plan
Free0 Alerts
Starter5 Alerts
Pro12 Alerts
Business20 Alerts