When a visitor says Cloudflare blocked them, or you want to know what your firewall is actually stopping, look in Security > Events in the Cloudflare dashboard. Each row records one decision and shows which Cloudflare feature acted on a request, what it did and which rule triggered it. Start with three columns, Action taken, Service and Rule, and treat the IP address, network and browser details as supporting context. Service names the product that decided, such as the WAF (web application firewall, which filters requests against rules) or rate limiting.
Two habits save the most time. Look up a complaint by its Ray ID, the reference code printed on every Cloudflare block page, instead of guessing from timestamps. And remember the log is a sample with a short lookback, about a day on the Free plan, so export anything you need before it disappears.
What’s happening
Events collects the verdicts from the whole edge pipeline — DDoS mitigation, IP Access rules, WAF custom rules, rate limiting, managed rulesets, and the bot products (Bot Fight Mode on Free, Super Bot Fight Mode on Pro and Business) — one entry per decision, first terminal action wins. The graph up top counts by action; the activity log below shows sampled individual events. Sampling matters: totals are solid, but a rare event can be missing from the visible log even though it happened and was acted on. Retention is plan-dependent — figure roughly a day of lookback on Free and progressively longer on paid tiers — so incident forensics start with an export, not a bookmark.
The fields that carry decisions: Action taken distinguishes hard outcomes (Block) from soft ones (Managed Challenge issued) and their resolutions (Challenge Solved versus no solve — a solve means a human was behind it, which reframes the event from attack to friction). Service names the deciding product, which routes your fix: a managed-rule block calls for an exception, a rate-limit block for a threshold review, a Bot Fight Mode event for a bot-tier decision. Rule gives the exact ID and description. Ray ID ties the event to the visitor’s error page and your origin logs.
What to check first
- The complaint path: get the Ray ID. Every Cloudflare block and challenge page prints one. Filter Events by it and you have the service, rule, and full request context in one step.
- The spike path: group before you scroll. Use the top-N panels (source IPs, paths, ASNs, user agents) to see the shape — one IP hammering one path reads differently than thousands of IPs touching everything.
- Whether “Log” and “Skip” rows are polluting your counts. Log actions are dry-run observations, not mitigations; a graph dominated by Log events can look like an attack that is actually your own experiment.
- The time range. The default view is short; widen it before concluding something “never happens”.
How to verify
Generate a known event and then find it — the fastest way to learn the filters:
# Trip a rule you own (here: a Log-mode custom rule on a test path)
curl -s -D /tmp/evt-headers.txt -o /tmp/evt.html "https://www.example.com/waf-canary?test=1"
grep -iE "^(HTTP|cf-ray|cf-mitigated)" /tmp/evt-headers.txt
grep -oE "Cloudflare Ray ID: [a-f0-9]+" /tmp/evt.html
Security > Events
Filter: Ray ID equals <the ray you just captured>
Then clear it and build the operator view:
Action taken is in Block, Managed Challenge
Service is not Log-only experiments
Group panels: top Paths, top ASNs, top User agents
For anything beyond the UI’s export ceiling, pull events from the GraphQL API:
curl -s "https://api.cloudflare.com/client/v4/graphql" \
-H "Authorization: Bearer $CF_API_TOKEN" -H "Content-Type: application/json" \
--data '{"query":"query { viewer { zones(filter: {zoneTag: \"'$ZONE_ID'\"}) { firewallEventsAdaptive(filter: {datetime_gt: \"2026-07-02T00:00:00Z\"}, limit: 100, orderBy: [datetime_DESC]) { datetime action source ruleId clientIP clientRequestPath userAgent } } } }"}'
Cross-check one exported row against origin logs by Ray ID to confirm your origin logging keeps cf-ray — if it does not, add it now, before the incident that needs it.
The fix
- Resolve complaints by Ray ID, always. Timestamp-plus-IP hunting misfires on shared IPs and clock skew; the Ray ID is exact and the user already has it on screen.
- Route the fix by the Service column. Managed rules: scoped exception. Custom rules: expression repair. Rate limiting: threshold or key review. Bot services: exemption or tier decision. Security Level: dial or exemption. Never fix a rate-limit problem with a managed-rule exception.
- Separate machines from humans before judging traffic. Service traffic shows datacenter ASNs, stable user agents, one or two paths, regular cadence, no cookies, and no challenge solves. Humans show ISP ASNs, browser UAs, varied paths — and they solve challenges. A “bot attack” that solves challenges is your customers.
- Give machine clients an identity instead of forgiveness. Recurring legitimate automation (monitors, partners, internal tools) deserves an explicit exemption — or, where it fetches protected apps, a Cloudflare Access service token as described in gating applications with Cloudflare Access — so its events stop needing interpretation.
- Export on a schedule, not on regret. CSV from the UI for quick shares; the GraphQL query above on a cron for zones where you must answer “what happened last month” — the dashboard window will not hold the answer. Logpush exists but is an Enterprise feature, so self-serve zones script the API instead.
- Turn repeated findings into rules with names. An ASN that shows up in every incident belongs in a rule (Log first), per the rollout discipline in WAF custom rules: block, challenge, log, skip.
When this fix is wrong
If you need per-request completeness — billing disputes, legal requests, full forensics — the sampled Events view is the wrong instrument no matter how well you read it; that is origin logs plus scheduled API export territory. And if a spike is purely volumetric with mitigation handled upstream by DDoS protection, reading individual events adds little: the DDoS analytics view tells that story better.
Common mistakes
- Treating sampled counts as exact request counts in reports.
- Filtering by IP for a user on CGNAT and attributing their neighbour’s attack to them.
- Ignoring Challenge Solved rates — the single best false-positive signal the product gives you.
- Letting the retention window expire on incident evidence because “the graph showed it”.
- Reading a Skip event as a block (“there is an event, so it was stopped”) when Skip means the opposite.
Prevention
Standardize the triage: complaint means Ray ID lookup, spike means top-N grouping, and every mitigation change gets rechecked in Events a day later. Schedule the GraphQL export wherever the zone matters, and record cf-ray at the origin so the two logs can always meet. The Events and analytics reference lives under developers.cloudflare.com/waf/.
Tuning edge security so it blocks attacks without blocking customers is ongoing work — Stack Harbor watches those events around the clock under 24/7 Monitoring & Response; book a monitoring and response review.