Cookie Settings

Choose which cookies to allow.

Full list in our Privacy Policy.

Cloudflare Alerts: How to Get Alerted on Errors and Attacks

Cloudflare alerts on errors and attacks: a 5xx error spike and a security events spike each crossing the rule that fires an alert

Cloudflare alerts are emails, webhooks or PagerDuty messages Cloudflare sends when an event you chose to watch happens on your account. If you want one when your site starts returning errors or gets attacked, your plan decides most of the answer: Free, Pro and Business have no built-in alert on 5xx errors or traffic drops, and the WAF alert, from Business up, fires only above 200 security events. The fix takes two steps: turn on the alerts your plan includes, then build the missing ones with Cloudflare’s Monitors. Lelops Sentry does that work for you: it watches errors, origin connectivity and attacks on every Cloudflare zone you connect, and sends each alert with a recommended fix.

Why Cloudflare Alerts Miss Errors and Attacks

They miss them because each built-in alert depends on your plan and fires on a rule Cloudflare sets. In Cloudflare’s list of Platform Notifications, we counted 11 built-in alerts that fire on your site’s traffic or origin: Free gets one of them, Business three and Enterprise nine.

On Free, the only one is the HTTP DDoS Attack Alert, sent once Cloudflare has mitigated an HTTP attack of more than 100 requests per second. Pro adds the Health Checks status notification, which tells you when a health check, a probe Cloudflare sends to your origin, finds it unhealthy. Business adds the Security Events Alert, Cloudflare’s WAF alert, on a spike across the services that log to Security Events. It fires only when the spike crosses 200 security events in five minutes, and Cloudflare’s docs state that “these thresholds cannot be configured.” On a small zone, an attack that stays under 200 never triggers it.

Alerts on 5xx errors, on the 521, 522 and 523 errors Cloudflare returns when it can’t reach your origin, and on traffic spikes or drops are Enterprise only. No built-in alert watches your cache hit ratio or response time, on any plan, so a cache hit ratio drop goes unreported.

How to Turn On the Cloudflare Alerts Your Plan Includes

Cloudflare alert destinations: email and webhook on every plan, PagerDuty on Business or higher

Creating one takes the Super Administrator or Administrator role, or an API token with the Notifications Read/Write permission.

  1. In Alerts > Destinations, add where your team reads alerts. Every plan can use email and webhooks, which post to any service that accepts HTTP callbacks, such as a chat tool. PagerDuty needs a zone on Business or higher.
  2. In Alerts > Platform Notifications, select Create a Notification, pick the type, choose the zones and add the destinations. Cloudflare email alerts get their addresses in this step.
  3. Create the HTTP DDoS Attack Alert for every zone. On Pro and higher, add the Health Checks status notification for each health check on your origin. On Business and Enterprise, add the Security Events Alert; when it fires, look in Security Events for your own rules blocking real visitors. On Enterprise, add the Origin Error Rate Alert and the Traffic Anomalies Alert, with drops selected as well as spikes.
  4. In each alert’s menu (⋯), Test sends sample data so you can check that it arrives.

How to Build Cloudflare Alerts for Errors with Monitors

Six Cloudflare monitors by detection method: anomaly detection, SLO, threshold

Monitors let you build the alerts your plan lacks. Cloudflare released them in beta on October 2, 2026: a monitor runs a query on the SQL API, Cloudflare’s SQL access to its analytics, every minute on most datasets, and alerts when the result meets your rule. Create one in Alerts > Monitors with Create a Monitor: the dashboard lists only the datasets your plan and permissions allow.

Each monitor uses one of three detection methods. Threshold compares the result with a number you set. Anomaly detection compares it with a baseline of at most the last 24 hours. SLO fires when the share of good events stays under your target in both a short and a long window. A query returns one number, so you create one monitor per zone and per signal, and we recommend these six:

  • Error rate: an SLO, with responses where edgeResponseStatus >= 500 as bad events and all requests as the total.
  • Origin connectivity: a threshold on the count of 521, 522 and 523 errors.
  • Requests: anomaly detection on spikes and drops, your own Traffic Anomalies Alert.
  • Security events: anomaly detection on spikes, with a minimum event count below Cloudflare’s 200 when your zone is small.
  • Cache hit ratio: a threshold under the floor the 7-day query preview shows for your zone.
  • Response time: a threshold over the ceiling the same preview shows.

How to Get Cloudflare Alerts on Errors and Attacks with Lelops Sentry

Lelops Sentry alerts with a fix: each alert comes with the Lelops AI recommendation and four actions, Acknowledge, Mark resolved, Resolve with Lelops and Automate

Lelops Sentry is the Lelops product that watches your Cloudflare edge and raises alerts, for teams without a dedicated edge expert. On each zone you connect, it watches error rates, request success rate, origin connectivity, traffic volume, WAF block rate, cache hit rate and response times, and raises an alert when one of them crosses its threshold. That covers the signals of the six monitors above on every zone, with no query to write per zone or per signal. Where a Cloudflare alert sends you to Security Events to investigate, a Sentry alert comes with a recommended fix you can apply from the alert itself. Cloudflare’s Monitors stay the right tool for a signal of your own, from any dataset your plan includes.

  1. Create your Lelops account and your organization, choose Cloudflare, then follow Create an API token: create a token in Cloudflare with the permissions you choose, paste it in Paste your API token here and select Verify.
  2. In Resources & permissions, review the zones and permissions the token gives Lelops, tick the box that acknowledges all granted permissions and select Continue. You can change the token’s permissions or revoke it in Cloudflare at any time.
  3. Open Sentry > Alerts: each row shows the alert’s start time, category, severity, type and status, and you can filter on them. High-severity alerts also arrive by email, with a Review alert button.
  4. Expand an alert. It shows a Description, the metric’s chart with its peak and its threshold, and the Lelops AI recommendation: for a credential stuffing alert, for example, a rate limiting rule on the login route. To find the configuration change behind an error spike, open Ask Lelops and ask “What changed?”: the answer names the change, its time and its author.
  5. Choose an action: Acknowledge to take it, Mark resolved if you fixed it outside Lelops, Resolve with Lelops to apply the recommendation, which saves a version you can roll back, or Automate to have Lelops resolve that pattern by itself next time.
  6. In the Automated Remediation tab, switch on the alert types for which Lelops should apply the recommended fix on its own, such as Credential stuffing or Scan anomaly.

Lelops Sentry alerts you on the errors, attacks, traffic, cache and response times of every Cloudflare zone you connect, with a recommended fix in each alert: lelops.ai/product/sentry.

FAQ

Does Cloudflare alert on 5xx errors?

Only on Enterprise, through the Origin Error Rate Alert and the Advanced Error Rate Alert. On Free, Pro and Business, teams build that alert themselves as a Monitor that counts responses with an edge status of 500 or more, where their plan's datasets allow it. On Pro and higher, a health check also reports when the origin stops answering.

Does Cloudflare send alerts on the Free plan?

Yes, but only one of its built-in alerts watches a Free site's traffic: the HTTP DDoS Attack Alert, sent when Cloudflare mitigates an HTTP attack of more than 100 requests per second. Free accounts can also be alerted about Cloudflare incidents, maintenance and Universal SSL, by email or webhook. Alerts on spikes in security events start at Business, and alerts on error rates and traffic anomalies at Enterprise.

Can the threshold of a Cloudflare alert be changed?

Not for the built-in alerts on security events, errors and traffic anomalies: Cloudflare's documentation states that their thresholds cannot be configured. Teams choose the zones, the filters and, for error rate alerts, a sensitivity level. A threshold of their own requires a Monitor, which runs a SQL API query and compares the result with a fixed value, a recent baseline or a service-level objective.

How are Cloudflare alerts sent to a chat tool or an on-call system?

Through a webhook destination, available on every Cloudflare plan, which posts each alert to any service that accepts HTTP callbacks. Cloudflare also connects directly to PagerDuty for zones on Business or higher. Destinations are set once under Alerts > Destinations, then picked in each alert.

Does Cloudflare alert on a drop in cache hit ratio?

No built-in Cloudflare alert watches cache hit ratio or response time, on any plan. Teams that want one build it as a Monitor with a threshold under their usual ratio, where their plan's datasets include it. Without an alert, a falling cache hit ratio first shows up as more requests reaching the origin.

Get started

Connect Cloudflare. See where your edge stands today.

Your first configuration health report, with the fixes to make first, in minutes.

  • No credit card required