notlogs rocket
notlogs

Alerts

Create an Alert Rule

Set up real-time condition rules using the Web Dashboard or programmatic REST API.

Creating via Dashboard

  1. Go to the Alerts page in your Dashboard.
  2. Click “New Alert”.
  3. Specify the rule name, app name, condition fields, threshold count, and window duration.
  4. Provide your destination webhook_url and cooldown period (e.g. 5m).
  5. 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