504 Log Entries with Origin Status 0: Logpush, RequestSource, and Internal Subrequests
Why Logpush shows EdgeResponseStatus 504 and OriginResponseStatus 0 in SIEM but not dashboards, and how RequestSource helps.
This page summarises Cloudflare documentation on log lines where EdgeResponseStatus is 504 and OriginResponseStatus is 0. Teams often notice these entries after shipping Logpush http_requests data into Splunk, Datadog, or another SIEM, while the same patterns never appear in Cache Analytics or HTTP Analytics in the dashboard. In most cases the lines are internal edge subrequests, not user-visible outages.
Logpush 504 with OriginResponseStatus 0: why the SIEM and dashboard disagree
Section titled “Logpush 504 with OriginResponseStatus 0: why the SIEM and dashboard disagree”Logpush ships every log line the edge produces, including internal subrequests. Cache Analytics and the dashboard hide those lines by design, so the same underlying traffic can look like a flood of 504 errors in a SIEM and like nothing unusual in the product UI.
If you ingest Cloudflare Logpush into Splunk, Datadog, or another SIEM, you may see log entries with EdgeResponseStatus=504 and OriginResponseStatus=0 that do not appear anywhere in the Cloudflare dashboard.
In most cases these are internal Cloudflare subrequests, not real end-user errors. The most common sources are Early Hints cache MISS lookups and Workers Cache API cache.match() MISS returns. These subrequests never reach your origin, so your site continues to work normally for end users.
— Cloudflare, 504 responses with origin status 0 in Logpush
The dashboard applies a requestSource = "eyeball" filter on analytics views (Cache, HTTP, and Security Analytics). Logpush has no equivalent default filter, so subrequest noise is visible only downstream unless you filter it yourself. To mirror dashboard-style counts in the GraphQL Analytics API, use the Filter end users guidance and restrict to end-user (eyeball) traffic.
OriginResponseStatus 0: what the field means in HTTP request logs
Section titled “OriginResponseStatus 0: what the field means in HTTP request logs”OriginResponseStatus is the status returned by the upstream server. Zero does not by itself mean “your origin failed.”
Status returned by the upstream server. The value 0 means that there was no response received from the origin server and the response was served by Cloudflare’s edge. If the zone has a Worker running on it, 0 can also be the result of a Workers subrequest made to the origin.
OriginResponseStatus=0 on its own is not an error signal. It means Cloudflare did not make a successful origin fetch for that log line. This is normal for cache hits, Worker responses, WAF blocks, redirects, and internal subrequests.
— Cloudflare, 504 responses with origin status 0 in Logpush
For broader troubleshooting, pair OriginResponseStatus with CacheStatus. When the origin closed the connection or never sent headers, zero can appear alongside edge-generated errors such as 520; when the response was served from cache, zero is expected and should be excluded from origin error rates. See Diagnosing origin connectivity using OriginResponseStatus in logs and Origin status codes for how edge and origin codes differ in analytics.
| Scenario | Typical OriginResponseStatus |
What it implies |
|---|---|---|
| Cache hit or revalidation without a fresh origin status | 0 |
No origin HTTP status on that line; not necessarily a failure |
| Internal subrequest (Early Hints lookup, Worker cache API miss) | 0 |
No origin contact for that log line |
| Origin timeout or connection failure on a real fetch | 0 |
Edge may show 504, 522, 524, or 520 to the client |
| Origin returned a normal HTTP response | non-zero (e.g. 200) |
Origin was contacted and responded |
When calculating bytes or errors served by the origin from logs, Cloudflare recommends using CacheResponseBytes and filtering out OriginResponseStatus values 0 and 304, as described in Common calculations FAQ.
RequestSource and ClientRequestSource: tell internal 504s from real用户 errors
Section titled “RequestSource and ClientRequestSource: tell internal 504s from real用户 errors”The decisive field for the 504/0 SIEM noise question is RequestSource (expose it in Logpush output_options.field_names). Values align with the numeric ClientRequestSource field reference.
RequestSource / ClientRequestSource |
Meaning | Typical action for 504 + OriginResponseStatus 0 |
|---|---|---|
earlyHintsCache (11) |
Internal Early Hints cache lookup | Filter out; benign |
edgeWorkerCacheAPI (6) |
Worker cache.match() miss |
Filter out; benign |
eyeball (1) or empty |
End-user request | Investigate as a genuine 504 |
edgeWorkerFetch (5) |
Worker fetch() subrequest |
Use ParentRayID to tie to parent; see Worker subrequests |
Field changes on a Logpush job propagate in roughly 10–15 minutes per the 504 FAQ. After adding RequestSource, re-classify existing 504/0 rows before opening an origin incident.
Add RequestSource to a Logpush job via API
Section titled “Add RequestSource to a Logpush job via API”curl -X PUT "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/logpush/jobs/$JOB_ID" \ -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \ -H "Content-Type: application/json" \ --data '{ "output_options": { "field_names": ["...existing fields...", "RequestSource"] } }'For Worker-heavy zones, also include RayID, ParentRayID, ClientRequestSource, OriginIP, and OriginResponseStatus as recommended in Worker subrequests.
Benign cause: Early Hints cache MISS (earlyHintsCache)
Section titled “Benign cause: Early Hints cache MISS (earlyHintsCache)”Early Hints internal lookups can produce many 504 lines with OriginResponseStatus 0. They are not browser errors and do not hit your origin.
You may see an influx of 504 responses with the RequestSource of earlyHintsCache in Cloudflare Logs when Early Hints is enabled, which is expected and benign. Requests from earlyHintsCache are internal subrequests for cached Early Hints, and they are neither end user requests, nor do they go to your origin.
Their response status only indicates whether there are cached Early Hints for the request URI: 200 on cache HIT, 504 on cache MISS.
— Cloudflare, 504 responses with origin status 0 in Logpush
If the origin never sends Link preload or preconnect headers, every lookup can miss, so one visitor request can generate one benign internal 504 log line—at scale, millions per day. The Error 502 or 504 FAQ ties this pattern to documented benign 504 sources alongside Workers cache misses.
On Cloudflare Pages, probe requests always run: they appear as ClientRequestSource: earlyHintsCache with user agents such as nginx-ssl early hints or bastion early hints. A 504 on a probe means no cached Early Hint for that URL; 200 means a hit. Zone-level Early Hints toggles do not apply to Pages domains. To reduce misses, emit Link headers via a _headers file or automatic generation from HTML.
If Early Hints adds no value (no Link headers from the origin), you can disable it under Speed → Optimization → Content Optimization in the dashboard, as described in the 504 FAQ. To see whether hints actually reach clients, query the GraphQL Analytics API for 103 responses while earlyHintsCache volume is high.
Benign cause: Workers Cache API MISS (edgeWorkerCacheAPI)
Section titled “Benign cause: Workers Cache API MISS (edgeWorkerCacheAPI)”When a Worker calls caches.default.match(request) and the entry is missing or expired, the Cache API returns undefined to the script, but logs still record an internal 504.
cache.match generates a 504 error response when the requested content is missing or expired. The Cache API does not expose this 504 directly to the Worker script, instead returning undefined. Nevertheless, the underlying 504 is still visible in Cloudflare Logs. If you use Cloudflare Logs, you may see these 504 responses with the RequestSource of edgeWorkerCacheAPI.
— Cloudflare, Cache
That behavior is intrinsic to how misses are signaled; SIEM filtering is the appropriate fix unless you change caching logic in the Worker.
When 504 with OriginResponseStatus 0 is a real origin or Worker problem
Section titled “When 504 with OriginResponseStatus 0 is a real origin or Worker problem”Not every matching row is an internal subrequest. The same field combination appears when Cloudflare tried to reach the origin and got no HTTP status:
- Origin timeout (connection opened or attempted, no response)
- Cloudflare Tunnel cannot reach the configured service
- Worker
fetch()to the origin fails or times out (OriginResponseStatus0 on the subrequest line per field definition)
If RequestSource is eyeball or empty and the edge returned 504, investigate origin health, Tunnel connectivity, or Worker reliability.
— Cloudflare, 504 responses with origin status 0 in Logpush
For zones with Workers, the first log line for an end-user hit often shows ClientRequestSource: eyeball with OriginResponseStatus: 0 and empty OriginIP because origin fields belong on the separate edgeWorkerFetch subrequest line linked by ParentRayID. Treating every eyeball row with zero origin status as an outage is a common mistake; correlate via Worker subrequests before escalating.
SIEM filters: match dashboard “eyeball-only” analytics
Section titled “SIEM filters: match dashboard “eyeball-only” analytics”Replicate the dashboard’s exclusion of internal product traffic in queries and alerts.
Splunk:
NOT RequestSource IN ("earlyHintsCache", "edgeWorkerCacheAPI")Datadog:
NOT @RequestSource:("earlyHintsCache" OR "edgeWorkerCacheAPI")Sumo Logic or generic:
!(RequestSource = "earlyHintsCache" OR RequestSource = "edgeWorkerCacheAPI")These patterns come from 504 responses with origin status 0 in Logpush. For API analytics parity, add requestSource filters for eyeball per Filter end users.
Optional: fewer log lines with Worker subrequest merging
Section titled “Optional: fewer log lines with Worker subrequest merging”If volume comes from many separate Worker subrequest lines (not only the benign 504 cases above), Logpush can nest qualifying subrequests under the parent visitor request when merge_subrequests: true on an http_requests job. See Subrequests and the Logpush subrequest merging changelog. Limitations include zone-scoped http_requests only, at most 50 merged subrequests per parent, a five-minute completion window, and gradual rollout—not all zones have it yet. Merging changes schema by adding a Subrequests array; update downstream pipelines before enabling.
Common mistakes when reading 504 / origin status 0 logs
Section titled “Common mistakes when reading 504 / origin status 0 logs”- Treating every
OriginResponseStatus: 0as an origin 5xx without checkingRequestSource,CacheStatus, or WorkerParentRayIDlinkage. - Comparing raw Logpush counts directly to dashboard HTTP error charts without an
eyeball(or equivalent) filter. - Alerting on Pages or Early Hints-enabled zones without excluding
earlyHintsCache, then chasing origin capacity that was never contacted. - Ignoring that
cache.match()misses are expected Worker behavior and appear asedgeWorkerCacheAPI504s in logs even though the Worker seesundefined. - Disabling Early Hints to silence logs without checking whether
103Early Hint responses are actually delivered to clients.
How to check this on your site
Section titled “How to check this on your site”- In the Cloudflare dashboard, open Analytics for the zone and confirm whether HTTP 504 errors appear for end users. Compare with your SIEM count for the same period to see if only Logpush shows a spike.
- Edit the Logpush
http_requestsjob and addRequestSource(and, for Workers,RayID,ParentRayID,ClientRequestSource,OriginIP,OriginResponseStatus) tofield_names. Wait about 10–15 minutes for fields to flow, as noted in 504 responses with origin status 0 in Logpush. - Break down SIEM rows where
EdgeResponseStatusis 504 andOriginResponseStatusis 0 byRequestSource. Rows withearlyHintsCacheoredgeWorkerCacheAPIshould be classified as benign internal traffic per the 504 FAQ. - Apply dashboard-equivalent filters (
NOTearlyHintsCache/edgeWorkerCacheAPI, and investigate remaining rows whereRequestSourceiseyeballor empty). For Worker routes, correlateeyeballparents withedgeWorkerFetchchildren viaParentRayIDusing Worker subrequests. - 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 is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.