# Alerting without the noise: thresholds, windows and cooldowns

Every team has lived through it: an alert channel so noisy that everyone mutes it, right before the incident that actually matters. Good alerting is less about catching everything and more about being trusted.

## Start from a query

In Tailcove, an alert is a saved question about your logs: "how many lines match this query in the last N minutes?" If you can search for it, you can alert on it.

```
level:error "connection refused"
```

Begin with the search page. Run the query over the last day and look at how often it matches when nothing is wrong. That baseline is the most important number you will choose.

## Threshold and window work together

An alert has a **threshold** (how many matches) and a **window** (over how many minutes). The pair matters more than either number alone:

- A threshold of 1 over 5 minutes fires on any single occurrence. Use it only for events that should never happen.
- A threshold of 50 over 5 minutes ignores background noise and fires on a real spike.

Set the threshold comfortably above your normal baseline, then check that a real incident from your history would have crossed it.

## Cooldowns keep one incident one notification

Once an alert fires, the problem usually continues for a while. Without a cooldown, every evaluation would send another message. A **cooldown** stops the same alert from notifying again for a set number of minutes, so a fifteen-minute outage is one notification, not fifteen.

## Route to the right place

Not every alert deserves the same channel:

| Severity                 | Channel                                               |
| ------------------------ | ----------------------------------------------------- |
| Customer-facing breakage | Slack or Discord channel the on-call engineer watches |
| Degradation worth a look | A team channel or email                               |
| Automation hooks         | A signed webhook into your own tooling                |

Webhooks are signed, so your endpoint can verify each request came from Tailcove before acting on it.

## Review alerts like code

Every trigger and delivery is recorded. Once a month, look at which alerts fired and whether anyone needed to act. An alert that fired ten times with no action needed is a candidate for a higher threshold or deletion.

## Pair alerts with uptime checks

Log alerts tell you something is going wrong inside your app. Uptime monitors tell you when it is not answering at all. Running both, with the same notification channels, covers the cases where a broken app stops logging entirely.

See the [alerts documentation](https://tailcove.dev/docs/alerts) for every option.
