---
title: "Alerts"
description: "Get a message in Discord, Slack or your own endpoint when something happens."
canonical_url: "https://docs.logstrace.dev/guides/exploring/alerts"
---
# Alerts

> Get a message in Discord, Slack or your own endpoint when something happens.

Open **Alerts** in a project. Admins and owners can create them.

## Conditions

<table>
<thead>
  <tr>
    <th>
      Alert me when
    </th>
    
    <th>
      Options
    </th>
    
    <th>
      Checked
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      A message at or above a level
    </td>
    
    <td>
      Warning or worse, Error or worse, Fatal only; optional channel and table
    </td>
    
    <td>
      On every ingest
    </td>
  </tr>
  
  <tr>
    <td>
      A new kind of message (new table)
    </td>
    
    <td>
      —
    </td>
    
    <td>
      On every ingest
    </td>
  </tr>
  
  <tr>
    <td>
      Too many messages in a time window
    </td>
    
    <td>
      At least N messages within M minutes; optional level, channel and table
    </td>
    
    <td>
      Every minute
    </td>
  </tr>
</tbody>
</table>

After an alert fires it stays quiet for its **quiet period** (1–1,440 minutes), so a burst of errors sends one message, not hundreds.

## Destinations

<table>
<thead>
  <tr>
    <th>
      Destination
    </th>
    
    <th>
      URL
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Discord
    </td>
    
    <td>
      Channel settings → Integrations → Webhooks → Copy URL
    </td>
  </tr>
  
  <tr>
    <td>
      Slack
    </td>
    
    <td>
      An Incoming Webhook URL (<code>
        hooks.slack.com/services/…
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      Webhook (JSON)
    </td>
    
    <td>
      Any public <code>
        https
      </code>
      
       endpoint. Receives a JSON <code>
        POST
      </code>
    </td>
  </tr>
</tbody>
</table>

Use **Send test** to check the destination before relying on it.

### JSON webhook body

```json
{
  "rule": { "id": "…", "name": "Checkout errors" },
  "title": "…",
  "details": ["…"],
  "link": "https://logstrace.dev/o/acme/p/checkout-api/logs?…",
  "event": { "level": "error", "channel": "checkout", "text": "Payment 8813 failed for user ••••@••••", "ts": "2026-10-06T09:12:00.000Z", "templateId": "…" }
}
```

`event` is `null` for volume alerts.

## Safety

- Message text in alerts is **always masked**, whoever created the alert: it leaves LogsTrace.
- Webhook URLs must use `https` on the default port and resolve to a public address. Private and local addresses are refused.
- Saved URLs are shown shortened in the list, since they work like passwords.


## Sitemap

See the full [sitemap](https://docs.logstrace.dev/sitemap.md) for all pages.
