Log Dataset Timestamp Fields, Edge Timing and Output Formats
What Logpush timestamp and datetime fields mean, how they differ by dataset, and how to read int versus string event times.
This page summarises Cloudflare documentation for timestamp, datetime, and related time fields in Logpush account and zone datasets. Almost every dataset exposes at least one such field; names and meanings differ by product (HTTP at the edge, DNS queries, Zero Trust sessions, audit changes, and others). Fields are usually typed int or string; a few datasets use different units or precision.
Logpush timestamp fields: what they represent
Section titled “Logpush timestamp fields: what they represent”Logpush ships structured log lines—one row per event, request, session, or finding—with time stored in dedicated columns rather than only inside free text. Documentation describes each column’s type and semantic (what moment in the lifecycle the value marks).
Type: int or string
The date and time the corresponding access request was made (for example, ‘2021-07-27T00:01:07Z’).
— Cloudflare, Access Requests — CreatedAt
For many security and platform events, a generic Timestamp is “when the event occurred” or “when the log was recorded,” depending on the dataset. Examples:
Type: int or string
The date and time the event occurred. To specify the timestamp format, refer to Output types.
— Cloudflare, Account Abuse Protection Events (account)
Type: int or string
Time the log event was recorded, after the request completed.
— Cloudflare, AI Gateway Events
When you join logs from several datasets, treat the field name and dataset doc as the definition of “which clock” you are reading—not the English label alone.
int or string: what changes in your pipeline
Section titled “int or string: what changes in your pipeline”Cloudflare lists most time fields as int or string. That reflects job output settings, not two different events in production. Several dataset pages point you to configure representation via output types (wording in the source: “refer to Output types”; that dedicated page is not in this cluster, so configure format using the Logpush job UI or API docs you already use).
Practical reading:
| Representation | Typical use in analytics |
|---|---|
String (often ISO-8601-style, e.g. 2021-07-27T00:01:07Z) |
Human review, ad hoc SQL, tools that expect text dates |
| Integer | Sorting, range filters, alignment with epoch-based systems |
Examples in field descriptions use string forms such as '2021-07-27T00:01:07Z' and '2024-08-28T15:32:35Z' on Device Posture Results, CASB Findings — DetectedTimestamp, and Email Security Alerts.
Field names people search for: Timestamp, Datetime, CreatedAt
Section titled “Field names people search for: Timestamp, Datetime, CreatedAt”Cloudflare reuses a small set of names across dozens of datasets. The dataset reference page is authoritative for meaning.
| Common name | Typical meaning (from dataset docs) | Example dataset |
|---|---|---|
Timestamp |
Event, query, detection, or log time | DNS Logs, Turnstile Events |
Datetime |
HTTP, gateway, firewall, or network activity time | Gateway HTTP, Firewall Events (zone) |
CreatedAt / When / ActionTimestamp |
Audit or configuration change time | Access Requests, Audit Logs, Audit Logs v2 |
Audit datasets stress when the change happened:
Type: int or string
When the change happened.
— Cloudflare, Audit Logs — When
Finding-oriented logs use first-seen semantics, e.g. DetectedTimestamp on CASB Findings.
Edge request timing: EdgeStartTimestamp and EdgeEndTimestamp
Section titled “Edge request timing: EdgeStartTimestamp and EdgeEndTimestamp”HTTP and WebSocket analytics split client ↔ edge timing instead of a single “request timestamp.”
Type: int or string
Timestamp at which the edge received request from the client.
— Cloudflare, HTTP Requests (zone) — EdgeStartTimestamp
Type: int or string
Timestamp at which the edge finished sending response to the client.
— Cloudflare, HTTP Requests (zone) — EdgeEndTimestamp
The same pair appears on HTTP Requests (account) and WebSocket Analytics (account and zone), with establish and close wording for WebSockets.
Use EdgeEndTimestamp − EdgeStartTimestamp (after parsing) for edge-side duration. Do not substitute Datetime on Gateway HTTP or firewall Datetime fields when the question is specifically edge HTTP timing—those docs describe different products and moments.
Firewall and network “at the edge” wording
Section titled “Firewall and network “at the edge” wording”Firewall Events and Network Analytics Logs use Datetime with explicit edge semantics:
Type: int or string
The date and time the event occurred at the edge. To specify the timestamp format, refer to Output types.
— Cloudflare, Firewall Events (account)
DNS Firewall Logs and DNS Logs use Timestamp for when the query occurred.
DNS, Gateway, and scheduled rules: TimeZone
Section titled “DNS, Gateway, and scheduled rules: TimeZone”Gateway DNS includes both request time and optional rule scheduling context:
Type: int or string
The date and time the corresponding DNS request was made (for example, ‘2021-07-27T00:01:07Z’).
— Cloudflare, Gateway DNS — Datetime
Type: string
Time zone used to calculate the current time, if a matched rule was scheduled with it.
— Cloudflare, Gateway DNS — TimeZone
TimeZone is not a second clock on every row—it documents timezone context when a matched rule was scheduled with one. Pair Datetime with TimeZone when investigating time-based Gateway DNS policies.
Multi-timestamp rows: sessions, email, spectrum, SSH
Section titled “Multi-timestamp rows: sessions, email, spectrum, SSH”Some datasets expose several time columns for one logical object. Map each column before deduplicating or “latest event” logic.
Zero Trust network sessions (nanosecond precision)
Section titled “Zero Trust network sessions (nanosecond precision)”Type: int or string
The network session start timestamp with nanosecond precision.
— Cloudflare, Zero Trust Network Session Logs — SessionStartTime
Type: int or string
The network session end timestamp with nanosecond precision.
— Cloudflare, Zero Trust Network Session Logs — SessionEndTime
Session duration should use these fields, not generic Timestamp on unrelated datasets.
Email Security post-delivery lifecycle
Section titled “Email Security post-delivery lifecycle”Email Security Post-Delivery Events defines MessageTimestamp, RequestedAt, and CompletedAt for original message time, action request, and action completion—three stages in one export.
Spectrum connection lifecycle
Section titled “Spectrum connection lifecycle”Spectrum Events provides ConnectTimestamp, DisconnectTimestamp, and Timestamp (when the event took place), including when both connection legs were established.
SSH logs: UTC program and session clocks
Section titled “SSH logs: UTC program and session clocks”SSH Logs document multiple UTC fields; several stay empty until the session or program ends:
Type: int or string
The timestamp in UTC of the SSH program termination. This is empty until the program ends.
— Cloudflare, SSH Logs — ProgramFinishDatetime
Comparable notes apply to SessionFinishDatetime. Ingestion pipelines should allow null or empty end times on in-progress sessions.
DEX tests and Magic flow logs
Section titled “DEX tests and Magic flow logs”DEX Application Tests separate Timestamp (test start) from TracerouteTimeEnd (traceroute-only end). Magic Network Monitoring Flow Logs include both FlowTimestamp and a general Timestamp—use the dataset page when correlating flows to events.
Exceptions: milliseconds, ingestion time, and test boundaries
Section titled “Exceptions: milliseconds, ingestion time, and test boundaries”Not every time field follows the int or string pattern.
Workers trace events use integer milliseconds only:
Type: int
The timestamp of when the event was received, in milliseconds.
— Cloudflare, Workers Trace Events — EventTimestampMs
Convert explicitly to seconds or datetime in your schema; do not treat this like epoch seconds without scaling.
WARP config and toggle datasets document Timestamp as ingestion time:
Type: int or string
Time the event was ingested.
— Cloudflare, WARP Config Changes
That is not necessarily the instant the change happened on the device—important for latency or causality analysis.
DEX Application Tests — TracerouteTimeEnd applies only to traceroute tests; other test types should not populate it.
Common mistakes when parsing Logpush timestamps
Section titled “Common mistakes when parsing Logpush timestamps”- Sorting mixed types — Comparing raw string ISO values works if formats are consistent; integer epoch rows in the same column need the same output setting everywhere.
- One “Timestamp” column for HTTP latency — Use
EdgeStartTimestamp/EdgeEndTimestampon HTTP Requests, not a single generic field from another product. - Ignoring empty SSH end times — Treat missing
ProgramFinishDatetime/SessionFinishDatetimeas in-flight, not zero time. - Workers ms vs seconds —
EventTimestampMsis documented in milliseconds (Workers Trace Events). - Confusing log time with message time — Email Security Alerts
Timestampis start time of message processing; post-delivery datasets add separate message and action times.
How to check this on your site
Section titled “How to check this on your site”- In the Cloudflare dashboard, open the Logpush job for the dataset you export and note the configured output type / timestamp encoding for that destination.
- Pull one recent object from the sink (object storage, SIEM, or webhook) and locate the time columns named in the matching dataset reference—for HTTP, confirm both
EdgeStartTimestampandEdgeEndTimestamp; for SSH, confirmSessionStartDatetimeandSessionFinishDatetime. - Compare parsed values to the descriptions on that dataset page (edge vs ingest vs message processing, and whether end-time fields may be empty).
- If you use Workers trace logs, verify
EventTimestampMsis scaled as milliseconds in your schema. - 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 your exports or the official field definitions, write to yimasynthetic@gmail.com with the page URL and the exact wording or sample row you are asking about.