Alerts
Get notified when something goes wrong — via Slack, Telegram, email, Discord, or webhook.
Creating an alert
Go to Alerts in the dashboard and click New Alert. Each alert has:
- A condition that triggers the alert
- A notification channel to send to
- A cooldown period to avoid spam
Alert conditions
Error rate above
Fires when the percentage of error/fatal logs exceeds a threshold in a time window.
{
"type": "error_rate_above",
"threshold": 5, // percentage (e.g. 5%)
"windowMinutes": 5 // evaluated over last 5 minutes
}Log count above
Fires when total log volume exceeds a threshold. Useful for detecting traffic spikes.
Keyword match
Fires when a log message contains a specific keyword or phrase.
{
"type": "keyword_match",
"keyword": "OutOfMemoryError",
"windowMinutes": 1
}Level spike
Fires when there's an unusual spike in a specific log level compared to the baseline.
Notification channels
Slack
Create an Incoming Webhook in your Slack workspace and paste the URL.
Telegram
Create a bot with @BotFather, get the token and your chat ID.
Enter one or more recipient email addresses. HTML email with log details is sent via Resend.
Webhook
Any HTTPS endpoint. LogFlow sends a POST request with JSON payload:
{
"alert": "High error rate",
"project": "my-app",
"condition": "error_rate_above",
"value": 12.5,
"threshold": 5,
"firedAt": "2024-01-15T10:30:00Z",
"logsUrl": "https://app.getlogflow.com/dashboard/logs?..."
}