Logpush Dataset Field Types: Arrays, Security Correlation, and Gateway Metadata
How Cloudflare Logpush dataset fields use array and object types, parallel security columns, Gateway categories, and deprecated names when you export logs.
This page summarizes Cloudflare documentation on Logpush job datasets: the typed fields that appear in exported log lines for HTTP traffic, firewall decisions, Gateway DNS and HTTP sessions, email security, and related account-level events. Most entries are arrays (array[string], array[int], array[object]) or small objects, because a single request or message can match many rules, categories, recipients, or scan results. If you are building parsers, SIEM mappings, or compliance reports, you need those types and the documented relationships between fields—not a flat list of every column.
Logpush fields: why exports use array[string] and array[object]
Section titled “Logpush fields: why exports use array[string] and array[object]”Logpush dataset pages define each field with a type and a short description. Multi-valued data is almost always an array, not a delimited string in one column.
| Type | Typical use in this cluster |
|---|---|
array[string] |
Lists of names, tags, rule refs, email addresses, header names, threat labels |
array[int] |
Numeric IDs (applications, categories, bot detections, EDE error codes) |
array[object] |
Structured rows (traceroute hops, attachment metadata, matched rules, resource records) |
object |
Key–value maps (for example custom AI topic labels with scores) |
For HTTP Requests (account or zone scope), examples include lists of content scan outputs, WAF signature categories, and bot-related tags. The same type pattern appears on Firewall Events at account and zone level.
AI Security and WAF: list fields on HTTP and firewall logs
Section titled “AI Security and WAF: list fields on HTTP and firewall logs”Several datasets expose AI Security and WAF results as separate list columns.
On HTTP and firewall datasets, customer-defined AI Security topics use an object (not a string array): labels plus relevance scores.
Customer-defined AI Security topic labels and their relevance scores. A score of 1 indicates the highest relevance, and 99 indicates the lowest relevance.
— Cloudflare, HTTP Requests (account)
PII and unsafe topic detections are array[string]:
List of PII categories detected in the request by AI Security.
— Cloudflare, Firewall Events (account)
WAF signature matches are also lists:
List of attack signature categories matched for the request.
— Cloudflare, HTTP Requests (zone)
List of attack signature rule references (refs) matched for the request.
— Cloudflare, Firewall Events (zone)
Content scan fields pair results with types, both array[string], on the same datasets (see HTTP Requests (account)).
Account- and zone-level Firewall Events and HTTP Requests pages in this cluster describe the same AI Security and WAF list fields; choose the dataset that matches your Logpush job scope, then parse those columns identically.
SecurityActions, SecurityRuleIDs, and SecuritySources: parallel arrays
Section titled “SecurityActions, SecurityRuleIDs, and SecuritySources: parallel arrays”On HTTP Requests, three security columns are designed to be read by the same index: position i in each array describes one security product action on that request.
Array of actions the Cloudflare security products performed on this request. The individual security products associated with this action can be found in SecuritySources and their respective rule IDs can be found in SecurityRuleIDs. The length of the array is the same as SecurityRuleIDs and SecuritySources.
— Cloudflare, HTTP Requests (account)
SecuritySources names which product matched (the same product can appear more than once if multiple rules fired). Documented values include waf, firewallRules, botManagement, dlp, apiShield, and others on the HTTP Requests (account) page.
SecurityRuleIDs holds the rule ID for each entry; lengths must match SecurityActions and SecuritySources.
MatchedRules is different: it is array[object] grouping matched Cloudflare Rules product rules by product, with product, rulesetId, rulesetVersion, and nested rules (each with id and optional metadata). Use MatchedRules for ruleset-oriented auditing; use the parallel security triple when you need one row per action across products.
Bot and fraud list fields (HTTP Requests only)
Section titled “Bot and fraud list fields (HTTP Requests only)”BotDetectionIDs, BotDetectionTags, and BotTags are array[int] or array[string] and are documented as available only for Bot Management customers, with enablement via your account team—see HTTP Requests (account). FraudDetectionIDs and FraudDetectionTags are similar list fields for fraud detections on the same dataset.
Gateway DNS: category, application, and resolution arrays
Section titled “Gateway DNS: category, application, and resolution arrays”The Gateway DNS dataset carries many correlated ID and name pairs, usually array[int] with a matching array[string].
Examples:
InitialCategoryIDs/InitialCategoryNames— categories for the queried domain.CNAMEs/CNAMEsReversed— intermediate CNAME chain and reversed form.ResolvedIPs—array[string]of IPs in the DNS response.QueryCategoryIDs/QueryCategoryNames— union of initial, resolved-IP, and CNAME-intermediate categories.
Union of all categories; Initial categories + Resolved IP categories + Cname intermediate categories
— Cloudflare, Gateway DNS
Policy match fields such as MatchedCategoryIDs, MatchedIndicatorFeedNames, and QueryIndicatorFeedIDs help explain which policy dimension fired, not just the final query name. ResourceRecords is array[object]; ResourceRecordsJSON is a string holding a JSON array of records—pick one representation in your pipeline, not both as primary keys. RData is marked deprecated in favor of the newer record structures on the same page.
Gateway HTTP and Network: headers, DLP, and applications
Section titled “Gateway HTTP and Network: headers, DLP, and applications”Gateway HTTP logs policy effects as string lists:
AddedHeaders,SetHeaders,DeletedHeaders—array[string](header names or entries as documented on the dataset page).DownloadMatchedDlpProfiles,UploadMatchedDlpProfiles, and related*DlpProfileEntries—array[string]for DLP matches on downloads and uploads.DownloadedFileNames/UploadedFileNames— file names involved in the session.ApplicationIDs/ApplicationNames/ApplicationStatuses— parallel application metadata for the HTTP request.
Gateway Network uses the same pattern at session level: ApplicationIDs, ApplicationNames, CategoryIDs, CategoryNames as arrays.
Warnings on Gateway HTTP is array[string] for processing warnings—useful when a row looks allowed but behavior was unexpected.
Email Security Logpush: recipients, findings, and attachment objects
Section titled “Email Security Logpush: recipients, findings, and attachment objects”Email Security Alerts exposes message structure as multiple array[string] columns (To, ToName, CC, BCC, Links, etc.) and rich Attachments as array[object] (hashes, names, content types, encryption flags). Example shape is given on the dataset page.
List of links detected in this message, benign or otherwise; limited to 100 in total.
— Cloudflare, Email Security Alerts
AlertReasons and ThreatCategories are human-readable and categorical string lists for disposition and classification. Email Security Post-Delivery Events uses Reasons (array[string]) for post-delivery actions and To for recipient addresses.
Access, DEX, and Workers trace datasets
Section titled “Access, DEX, and Workers trace datasets”Smaller account datasets in this cluster follow the same typing rules:
- Access Requests:
TemporaryAccessApprovers—array[string]. - DEX Application Tests:
TracerouteHops—array[object](traceroute tests only). - DEX Device State Events:
CPUPercentageByAppandRAMUsedPercentageByApp—array[object]with app name and percentage. - Workers Trace Events:
ExceptionsandLogs—array[object];ScriptTags—array[string]user-defined Worker tags.
These are not HTTP security rows, but parsers should still treat them as JSON arrays, not scalar strings.
Deprecated fields: FirewallForAI* vs AISecurity*
Section titled “Deprecated fields: FirewallForAI* vs AISecurity*”On HTTP Requests and Firewall Events, older columns are explicitly deprecated:
List of PII categories detected in the request by Firewall for AI. Deprecated: Use AISecurityPIICategories instead.
— Cloudflare, HTTP Requests (account)
The same deprecation applies to FirewallForAIUnsafeTopicCategories in favor of AISecurityUnsafeTopicCategories. New Logpush field selections and dashboards should use the AISecurity* names; keep legacy parsers only while historical jobs still emit the old fields.
Common mistakes when parsing Logpush dataset fields
Section titled “Common mistakes when parsing Logpush dataset fields”- Zipping mismatched arrays — Do not join
SecurityActions,SecurityRuleIDs, andSecuritySourcesunless their lengths are equal for that row; the documentation requires equal length, and violations indicate a parsing or sampling bug. - Treating objects as strings —
AISecurityCustomTopicCategoriesis anobject(scores per label), notarray[string]. - Ignoring scope — HTTP and firewall field definitions are duplicated for account vs zone jobs; the job’s dataset name must match the reference page you use.
- Assuming bot columns are always present — Bot list fields on HTTP Requests require Bot Management and account-team enablement per the dataset docs.
- Email link completeness —
Linksis capped at 100 entries per message; absence of a URL in the log does not prove the message had no links. - Deprecated columns in new jobs — Continuing to map
FirewallForAI*after switching field sets duplicates AI Security data.
How to check this on your site
Section titled “How to check this on your site”- Confirm your Logpush job’s dataset name (for example
http_requests,firewall_events,gateway_dns) against the matching page under Logpush job datasets (account or zone path as configured). - Export or sample one recent log line and validate JSON types: arrays should parse as JSON arrays, not escaped strings, using the field glossary on that dataset page.
- For HTTP security rows, verify index-by-index alignment of
SecurityActions,SecurityRuleIDs, andSecuritySourceslengths before building correlation logic. - If you migrated field lists recently, search samples for deprecated names (
FirewallForAIPIICategories,RData) and confirm new jobs emitAISecurity*and current DNS record fields instead. - You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page does not match the dataset reference or your exported logs, write to yimasynthetic@gmail.com with the page URL and the exact field name or statement you think is wrong.