Cloudflare Analytics data model: traffic, bot requests and security events as tables
A custom connector in OWOX Data Marts loads a Cloudflare zone's analytics, on any Cloudflare plan, into your data warehouse: exact traffic, daily splits, bot requests and security events.
- Open source. OWOX Data Marts is open source: you can read the code that loads and models your data, and run it yourself.
- You own the data. Cloudflare Analytics tables load into your data warehouse, under your account. If you leave OWOX, they stay where they are.
- MCP-ready. Once the data is in, Claude or ChatGPT can work from your Data Marts through OWOX MCP.
Don't wire up Cloudflare Analytics by hand. Have your AI assistant load it into your data warehouse.
Your assistant sets up the Cloudflare Analytics connector with you and loads the tables you pick; OWOX keeps them in your data warehouse, ready to use.
The prompt
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /data-sources/cloudflare-analytics.md. The task: set up the Cloudflare Analytics connector in OWOX Data Marts, let me pick the tables I need, load them into my data warehouse and show me the first rows. Tag the links you give me with utm_campaign=ai-task and utm_term=data-source. Use what you know about my context and goals
Prefer to start on your own? Get started free
The Cloudflare Analytics data model
The Cloudflare Analytics data model
Daily Traffic is the anchor: one row per UTC day with the zone's totals, counted by Cloudflare's rollup and not sampled.
- Hourly Traffic and the daily splits by status, browser family, country, IP class and content type break those totals apart and join Daily Traffic on date; the status and country splits sum back to the day.
- Bot Requests by Page and Security Events come from Cloudflare's sampled datasets, so wherever
sample_intervalis above 1 their counts are estimates. - Cloudflare's API reads only a limited window back, so each completed UTC day is loaded once and kept, and the tables become your history.
How the tables join (9)
Bot Requests by Page joins to Hourly Trafficon
hourN:1 (many to one)The whole zone's traffic in the hour the bot request fell in.
Bot Requests by Page joins to Daily by Statuson
date,statusN:1 (many to one)All of the zone's responses with the same status that day, bots and people.
Daily by Browser joins to Daily Trafficon
dateN:1 (many to one)The day total the browser split comes from.
Daily by Content Type joins to Daily Trafficon
dateN:1 (many to one)The day total the content-type split comes from.
Daily by Country joins to Daily Trafficon
dateN:1 (many to one)The day total the country split comes from.
Daily by IP Class joins to Daily Trafficon
dateN:1 (many to one)The day total the IP-class split comes from.
Daily by Status joins to Daily Trafficon
dateN:1 (many to one)The day total the status split comes from.
Hourly Traffic joins to Daily Trafficon
dateN:1 (many to one)The day the hour belongs to.
Security Events joins to Daily by Countryon
date,countryN:1 (many to one)All of the zone's traffic from the same country that day.
Put the model in your warehouse, BigQuery, Snowflake, Redshift, Athena or Databricks, or keep each table as a Data Mart with its joins.
- Google Sheets
- ChatGPT
- Claude
The same published Data Marts feed Google Sheets reports and answer questions in ChatGPT, Claude or any other MCP-compatible assistant through OWOX MCP.
Cloudflare Analytics kept past the API's window
Cloudflare's GraphQL Analytics API answers only for a limited window back, set per plan and dataset. Loaded day by day into your data warehouse, the same numbers stay, and bot traffic, security events and totals sit in one place you can query.
- Which AI crawlers read which pages. Bot Requests by Page holds requests whose user agent names a bot, plus every request Cloudflare verified as one, by path, user agent and verified-bot category such as AI Crawler. Keep status 200 and content type html or md to see the pages crawlers actually fetched.
- Verified and claimed, told apart. An empty verified_bot_category means Cloudflare did not verify the bot. Unverified traffic, spoofed crawlers included, becomes a number per page.
- Exact totals, sampled detail. The rollup tables are exact. In Bot Requests by Page, requests is already scaled up by Cloudflare; in Security Events one row can stand for several events, so count events as SUM(sample_interval).
- History you keep. Each completed UTC day is loaded once and kept, so after Cloudflare's window has moved on, your tables are the only copy of those days.
- Security events against traffic. Security Events joins Daily by Country on date and country. Count its events by sample_interval first, then read the requests blocked from one country against all of that country's traffic the same day.
- One zone, one set of numbers. , and assistants read the same tables, so a crawler report and a traffic report agree on the zone's requests.
Cloudflare Analytics Endpoints
9 Cloudflare Analytics endpoints you can import. Each lands in its own table in your data warehouse.
Bot Requests by Page
Requests from bots and AI crawlers to one host, seen at Cloudflare's edge: one row per UTC hour, page path, method, user agent, status, content type and verified-bot category, with no IP addresses.
12 fieldsTime seriesDaily by Browser
The zone's exact daily page views by browser family, as Cloudflare reads the user agent.
3 fieldsTime seriesDaily by Content Type
The zone's exact daily requests and bytes by response content type: html, md, js, css, images, and empty for redirects.
4 fieldsTime seriesDaily by Country
The zone's exact daily requests, bytes and threats by client country.
5 fieldsTime seriesDaily by IP Class
The zone's exact daily requests by Cloudflare's IP class: searchEngine, badHost, tor, allowlist, monitoringService, unknown and others.
3 fieldsTime seriesDaily by Status
The zone's exact daily requests by HTTP status code, from the daily rollup.
3 fieldsTime seriesDaily Traffic
The zone's exact daily totals from Cloudflare's daily rollup: requests, page views, unique client IPs, bytes, cached requests and bytes, threats and encrypted requests.
9 fieldsTime seriesHourly Traffic
The zone's exact hourly totals from Cloudflare's hourly rollup: requests, page views, unique client IPs, bytes, cached requests and threats.
8 fieldsTime seriesSecurity Events
Requests Cloudflare blocked, challenged or logged under a security rule: WAF managed rules, the browser integrity check, the security level and others.
14 fieldsTime series
Cloudflare Analytics Bot Requests by Page schema
12 fieldsTime seriescloudflare_bot_requests
Requests from bots and AI crawlers to one host, seen at Cloudflare's edge: one row per UTC hour, page path, method, user agent, status, content type and verified-bot category, with no IP addresses.
Questions this table answers
- Which pages did verified AI crawlers fetch most last week, and which crawler read each one?
- How many requests come from user agents that claim a known bot name but that Cloudflare did not verify?
- Which missing pages do crawlers keep requesting?
| Field | Type | Description |
|---|---|---|
date | DATE | UTC day the row counts. |
host | STRING | Host the bot requests were sent to: the connector's Host parameter, one host per load. |
hour | DATETIME | Start of the UTC hour. |
path | STRING | Request path without the query string. |
method | STRING | HTTP method of the request, e.g. GET or HEAD. |
status | INTEGER | HTTP status Cloudflare returned. |
row_keyPK | STRING | Hour|host|method|path|status|content type|verified category|user agent. Unique per row. A re-run of a loaded day overwrites only the keys that come back, so delete the day's rows before reloading it. |
requests | INTEGER | Requests. An estimate when sample_interval > 1. |
user_agent | STRING | User agent string the bot sent; the bot's claimed name, which only verified_bot_category confirms. |
content_type | STRING | html, md, empty (redirects), js, css, gif… |
sample_interval | FLOAT | Cloudflare adaptive sampling: 1 = every request counted; above 1, requests is scaled up from a sample. Delete a loaded day's rows before reloading it: rows of the first load whose keys do not come back stay, and the day is counted twice. |
verified_bot_category | STRING | Cloudflare's verified-bot category, e.g. AI Crawler, AI Search, AI Assistant, Search Engine Crawler. Empty when Cloudflare did not verify the bot: spoofed, unknown, or not on Cloudflare's list. |
Cloudflare Analytics Daily by Browser schema
3 fieldsTime seriescloudflare_daily_by_browser
The zone's exact daily page views by browser family, as Cloudflare reads the user agent.
Questions this table answers
- Which browser families bring the most page views?
- How many page views a day come from bot families rather than browsers?
| Field | Type | Description |
|---|---|---|
datePK | DATE | UTC day the row counts. |
page_views | INTEGER | Page views of that browser family that day. |
browser_familyPK | STRING | Browser family Cloudflare derives from the user agent, e.g. Chrome, Safari, BingBot. |
Cloudflare Analytics Daily by Content Type schema
4 fieldsTime seriescloudflare_daily_by_content_type
The zone's exact daily requests and bytes by response content type: html, md, js, css, images, and empty for redirects.
Questions this table answers
- How many HTML and Markdown pages does the zone serve a day, against assets?
- Which content types carry most of the bytes?
| Field | Type | Description |
|---|---|---|
datePK | DATE | UTC day the row counts. |
bytes | INTEGER | Bytes Cloudflare sent to clients in the row's period and split. |
requests | INTEGER | Requests Cloudflare served in the row's period and split, people and bots together. |
content_typePK | STRING | Content type of the response as Cloudflare names it: html, md, js, css, gif, empty for redirects. |
Cloudflare Analytics Daily by Country schema
5 fieldsTime seriescloudflare_daily_by_country
The zone's exact daily requests, bytes and threats by client country.
Questions this table answers
- Which countries send the most requests and the most threats?
- Did traffic from one country jump on a given day?
| Field | Type | Description |
|---|---|---|
datePK | DATE | UTC day the row counts. |
bytes | INTEGER | Bytes Cloudflare sent to clients in the row's period and split. |
countryPK | STRING | Client country as Cloudflare reports it: a two-letter code; XX when unknown. |
threats | INTEGER | Requests Cloudflare counted as threats in the row's period and split. |
requests | INTEGER | Requests Cloudflare served in the row's period and split, people and bots together. |
Cloudflare Analytics Daily by IP Class schema
3 fieldsTime seriescloudflare_daily_by_ip_class
The zone's exact daily requests by Cloudflare's IP class: searchEngine, badHost, tor, allowlist, monitoringService, unknown and others.
Questions this table answers
- How many requests a day come from search-engine IPs, and how many from bad hosts or Tor?
- Is monitoring traffic a visible share of requests?
| Field | Type | Description |
|---|---|---|
datePK | DATE | UTC day the row counts. |
ip_classPK | STRING | Cloudflare's class of the client IP, e.g. searchEngine, badHost, tor, monitoringService, unknown. |
requests | INTEGER | Requests Cloudflare served in the row's period and split, people and bots together. |
Cloudflare Analytics Daily by Status schema
3 fieldsTime seriescloudflare_daily_by_status
The zone's exact daily requests by HTTP status code, from the daily rollup.
Questions this table answers
- How many 404 and 5xx responses did the zone return per day, and is the share growing?
- What share of requests are redirects?
| Field | Type | Description |
|---|---|---|
datePK | DATE | UTC day the row counts. |
statusPK | INTEGER | HTTP status Cloudflare returned. |
requests | INTEGER | Requests Cloudflare served in the row's period and split, people and bots together. |
Cloudflare Analytics Daily Traffic schema
9 fieldsTime seriescloudflare_daily_traffic
The zone's exact daily totals from Cloudflare's daily rollup: requests, page views, unique client IPs, bytes, cached requests and bytes, threats and encrypted requests.
Questions this table answers
- How did requests, page views and unique IPs change week over week?
- What share of requests and bytes does the cache serve each day?
| Field | Type | Description |
|---|---|---|
datePK | DATE | UTC day the row counts. |
bytes | INTEGER | Bytes Cloudflare sent to clients for the zone that day. |
threats | INTEGER | Requests Cloudflare counted as threats that day. |
uniques | INTEGER | Unique client IPs that day. |
requests | INTEGER | Requests Cloudflare served for the zone that day, people and bots together. |
page_views | INTEGER | Cloudflare page views: successful HTML responses, bots included. |
cached_bytes | INTEGER | Bytes served from Cloudflare's cache that day. |
cached_requests | INTEGER | Requests served from Cloudflare's cache that day. |
encrypted_requests | INTEGER | Requests that day sent over an encrypted (HTTPS) connection. |
Cloudflare Analytics Hourly Traffic schema
8 fieldsTime seriescloudflare_hourly_traffic
The zone's exact hourly totals from Cloudflare's hourly rollup: requests, page views, unique client IPs, bytes, cached requests and threats.
Questions this table answers
- At which hours of the day does traffic peak, and does the cache keep up?
- Which hours had a burst of threats?
| Field | Type | Description |
|---|---|---|
date | DATE | UTC day the row counts. |
hourPK | DATETIME | Start of the UTC hour. |
bytes | INTEGER | Bytes Cloudflare sent to clients in the row's period and split. |
threats | INTEGER | Requests Cloudflare counted as threats in the row's period and split. |
uniques | INTEGER | Unique client IPs in that hour; the same IP in two hours counts in both, so hours do not add up to the day. |
requests | INTEGER | Requests Cloudflare served in the row's period and split, people and bots together. |
page_views | INTEGER | Cloudflare page views in the row's period: successful HTML responses, bots included. |
cached_requests | INTEGER | Requests Cloudflare served from its cache in the row's period. |
Cloudflare Analytics Security Events schema
14 fieldsTime seriescloudflare_security_events
Requests Cloudflare blocked, challenged or logged under a security rule: WAF managed rules, the browser integrity check, the security level and others.
Questions this table answers
- Which rules block the most requests, and on which paths?
- Which countries do blocked requests come from, against all their traffic that day?
- Are challenges hitting real user agents on normal pages?
| Field | Type | Description |
|---|---|---|
date | DATE | UTC day the row counts. |
host | STRING | Host name the request was sent to. |
path | STRING | Request path without the query string. |
action | STRING | What Cloudflare did with the request, e.g. block, managed_challenge, js_challenge or log. |
method | STRING | HTTP method of the request. |
source | STRING | Which Cloudflare security feature acted, e.g. firewallManaged (WAF managed rules), bic (browser integrity check), securitylevel. |
status | INTEGER | HTTP status Cloudflare returned. |
country | STRING | Client country as Cloudflare reports it: a two-letter code; XX when unknown. |
rule_id | STRING | ID of the rule that fired; read it together with source. |
ray_namePK | STRING | Cloudflare Ray ID of the request. |
event_time | DATETIME | Time of the event (UTC). |
user_agent | STRING | User agent string the client sent. |
description | STRING | Cloudflare's description of the rule that fired. |
sample_interval | FLOAT | Cloudflare adaptive sampling: 1 = every event is a row; above 1, one row stands for that many events. |
What Cloudflare Analytics data answers
What Cloudflare Analytics data answers
Across the tables
- Which pages do AI crawlers read most, and which crawlers does Cloudflare verify and which only claim a bot name?
- Did 404s or
security eventsgrow this month, and from which countries and rules? - What share of the zone's daily requests is served from cache, and how does it change by hour?
The Data Partner You Can Trust
users
166K Source: Internal OWOX data as of 2026-11-15
Executives and data analysts across 20+ industries
Customers
You are booked. The invitation is on its way to , with the calendar invite and the meeting link.