Skip to content

Cloudflare logging on Free, Pro, and Business: what you get, what you do not, and what to use instead

Find out which Cloudflare logs your Free, Pro, or Business plan includes, and how to use your origin server logs to investigate problems when per-request edge logs are not available.

This guide explains which Cloudflare logs you get on the Free, Pro, and Business plans, and how to investigate problems when your plan lacks full request logs. It is for site owners and admins who need to find out what happened to a request and cannot find the data in the dashboard.

Here is the plan-by-plan picture. Full request logs are Enterprise features. Logpush streams every request to a storage bucket or a SIEM, a tool security teams use to collect and search logs. Logpull fetches the same logs over the API. Instant Logs, a live view of requests in the dashboard, starts at Business and keeps nothing once you close it. Free and Pro give you aggregated analytics (totals by hour or day) and sampled security events, which means you see examples rather than every event.

The good news is that your own server already keeps a complete record of every request that reached it, called the origin access log. On lower plans, the workable pattern is to use Cloudflare’s totals for the big picture and your origin logs for the details.

What’s happening

Cloudflare’s telemetry comes in tiers. Every plan gets zone analytics dashboards and the GraphQL Analytics API with aggregated datasets — counts by hour or day, split by status code, country, or content type, with retention and resolution that improve as the plan tier rises. Every plan also gets Security Events, the per-event view of WAF and bot actions. Lower tiers come with two caveats: the events are sampled (you see representatives, not every occurrence), and retention is short on Free — on the order of a day, stretching longer as you move up plans.

What lower plans do not get is the request-level firehose. No export of “every request with URL, headers, colo, cache status, bot score.” That specific artifact requires Enterprise Logpush (streaming delivery to S3/R2/SIEM) or Logpull (API retrieval). Business adds Instant Logs — a genuinely useful live tail for watching an incident in real time — but it is a window, not an archive: when you close it, nothing is retained.

Meanwhile your origin writes a complete, unsampled record of every request that got past cache and security. It cannot see what the edge absorbed — cache hits and blocked attacks never reach it — but for application debugging, abuse investigation, and compliance trails, it is the primary source, and it costs nothing on any plan.

What to check first

  • What the investigation actually needs: live view (Instant Logs or an origin tail -f), historical per-request detail (origin logs), or trends (GraphQL). Naming the need first prevents plan-envy detours.
  • Whether your origin log format is ready: without CF-Connecting-IP and CF-RAY in the log line, origin logs are half-blind behind a proxy.
  • Whether the event you care about even reaches the origin. A blocked attack lives only in Security Events; a cache-hit spike lives only in edge analytics.

How to verify

# Enrich nginx logs with the Cloudflare view: real IP, ray ID, country
log_format cf_combined '$remote_addr - $remote_user [$time_local] '
                       '"$request" $status $body_bytes_sent '
                       '"$http_referer" "$http_user_agent" '
                       'ray=$http_cf_ray country=$http_cf_ipcountry';

# Then confirm the fields land
tail -3 /var/log/nginx/access.log

# Aggregates from the edge on any plan: requests + cached share, yesterday
curl -s "https://api.cloudflare.com/client/v4/graphql" \
  -H "Authorization: Bearer <API_TOKEN>" \
  -H "Content-Type: application/json" \
  --data '{"query":"{ viewer { zones(filter: {zoneTag: \"<ZONE_ID>\"}) { httpRequests1dGroups(limit: 1, filter: {date: \"2026-07-02\"}) { sum { requests cachedRequests threats } } } } }"}'

# What percentage of edge traffic does your origin log actually see?
# (requests - cachedRequests) / requests, roughly - the rest is edge-only

The fix

Match the tool to the plan you are on instead of wishing for the one above it:

  1. On every plan: make origin logs Cloudflare-aware today. Add $http_cf_ray and $http_cf_connecting_ip (or rely on the real-IP substitution) to the Nginx log format, or %{CF-RAY}i in Apache. This single change turns “some IP from Cloudflare did something” into a joinable, per-request record.
  2. On Free and Pro: aggregate at the edge, investigate at the origin. Use GraphQL pulls for daily counts, threats, and cache ratios; grep the origin for the specifics. For most SMB workloads this covers 95% of real investigations.
  3. On Business: use Instant Logs during incidents, but do not call it logging. Open the live tail while reproducing a problem, capture what you need, and remember nothing persists. Your archive is still the origin.
  4. Ship origin logs somewhere durable. Centralize with Filebeat into ELK or an equivalent pipeline so retention, search, and alerting stop depending on one server’s disk. This is the piece that makes the “origin logs instead of Logpush” story actually hold up.
  5. If a requirement genuinely says “every edge request, exported”: that is Enterprise. SIEM ingestion mandates, bot-score analysis, per-colo debugging — price the Enterprise conversation rather than building a Worker-based imitation that becomes its own project.

When this fix is wrong

If the requests you need to see never reach the origin — blocked attacks you must prove, cache-hit patterns you must analyze — no amount of origin logging helps, and sampled Security Events may not satisfy an auditor. That is a plan-upgrade conversation, not a tooling one. Conversely, if you are on Business considering Enterprise only for Logpush, check first whether enriched origin logs plus GraphQL already answer every question anyone has actually asked this year.

Common mistakes

  • Believing the dashboard’s Security Events list is complete. On lower plans it is sampled. “I only see three blocks” does not mean only three happened.
  • Treating Instant Logs as an audit trail. It retains nothing. Screenshot-driven compliance is not compliance.
  • Rotating origin logs into oblivion. A 7-day logrotate default quietly deletes the only per-request history you have. Set retention deliberately.
  • Building a Workers-based request logger without counting the cost. It is possible — a Worker can forward request metadata to your collector — but it adds latency, Workers billing, and a new failure mode; on Free/Pro it is occasionally justified, rarely on Business.

Prevention

Decide log retention and log shipping once, in writing — which logs, how long, where — and revisit at plan changes. The worst position is discovering during an incident which records you assumed existed but never configured anywhere. If “is it Cloudflare or is it us” keeps eating your evenings, that triage is literally the job of 24/7 Monitoring & Response — book a monitoring and response review.