Create a LogFlow alert that pings your Slack channel whenever the error rate exceeds a threshold — set up in under 5 minutes, no code required.
Getting a Slack ping when something breaks in production is one of the highest-value things you can set up. This tutorial walks through creating a LogFlow alert that fires when error rate exceeds 5% over a 5-minute window.
#alerts channel (or create one)https://hooks.slack.com/services/T.../B.../xxxOpen LogFlow → Alerts and click New Alert.
Fill in the form:
Condition
5 (percent)5 minutesChannel
Settings
High error rate30 minutes (prevents repeated pings during an ongoing incident)Click Create Alert.
The fastest way to test: send a few error logs via the CLI or the HTTP API, then check your Slack channel.
# Send a test error via HTTP API
curl -X POST https://api.getlogflow.com/v1/logs \
-H "Authorization: Bearer lf_your_key" \
-H "Content-Type: application/json" \
-d '{"level":"error","message":"Payment failed","service":"api"}'
Alternatively, trigger errors in your application and watch for the Slack message.
When the alert fires, LogFlow posts a message to your channel:
🚨 Alert: High error rate Error rate is 8.3% (threshold: 5%) in the last 5 minutes. Service: api · Project: My App View logs →
While you're here, consider adding these:
| Alert type | When to use |
|---|---|
| Keyword match | Fire when a specific string appears ("database connection failed") |
| Log count above | Fire when request volume spikes unexpectedly |
| Level spike | Fire when fatal logs appear (any count) |
| Anomaly detection | Automatic — fires when LogFlow detects unusual patterns |
All support the same channels: Slack, Telegram, email, Discord, or any webhook.
What is the cooldown period? After an alert fires, LogFlow waits for the cooldown period before firing again — even if the condition is still true. This prevents your Slack channel from being spammed during a long outage. 30 minutes is a good default.
Can I alert on a specific service only? Currently alerts apply to your whole project. Filter in the Logs Explorer and create separate projects per critical service if you need per-service alerting.
What if I want to alert on Telegram instead? The setup is identical — choose Telegram as the channel type and provide your bot token and chat ID. See Alerts documentation for all channel types.
Free plan available. No credit card required. Up and running in 2 minutes.
Get started freeStructured Logging in Django with LogFlow
Set up structured logging in Django to capture request logs, errors, and Celery tasks in LogFlow — with full search and alerting.
Kubernetes Logging with LogFlow
Collect structured logs from your Kubernetes pods and send them to LogFlow with service, namespace, and pod metadata automatically attached.
Add Structured Logging to FastAPI in 10 Minutes
Set up structured JSON logging in FastAPI and ship logs to LogFlow with automatic request context and error tracking.