My team is using LogPush to stream Cloudflare logs into S3, then parse them to monitor traffic health.
Some of these requests have timing data that I don’t understand. I’ve included a full log below, but the relevant parts are:
-
CacheCacheStatus
: unknown -
EdgeStartTimestamp
:1616025598083000000 (2021-03-17 18:59:58) -
EdgeEndTimestamp
:1616025600399000000 (2021-03-17 19:00:00) -
OriginResponseDurationMs
: 0 -
OriginResponseTime
: 0
Specifically we’re trying to use OriginResponseDurationMs
to monitor round-trip latencies.
Here’s the full log:
{
"Cookies":{"id_token":"REDACTED"},
"RequestHeaders":{},
"ResponseHeaders":{},
"ParentRayID":"00",
"RayID":"631a2d940fe4ecee",
"SecurityLevel":"med",
"ZoneID":76556440,
"CacheCacheStatus":"unknown",
"CacheTieredFill":false,
"CacheResponseBytes":94570,
"CacheResponseStatus":200,
"ClientASN":46562,
"ClientCountry":"ca",
"ClientDeviceType":"desktop",
"ClientIP":"REDACTED",
"ClientIPClass":"noRecord",
"ClientRequestProtocol":"HTTP/2",
"ClientSrcPort":59136,
"ClientSSLCipher":"AEAD-AES128-GCM-SHA256",
"ClientSSLProtocol":"TLSv1.3",
"ClientXRequestedWith":"",
"ClientRequestBytes":13273,
"ClientRequestHost":"REDACTED.com",
"ClientRequestMethod":"POST",
"ClientRequestPath":"REDACTED.aspx",
"ClientRequestReferer":"REDACTED.aspx",
"ClientRequestURI":"REDACTED.aspx",
"ClientRequestUserAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0",
"EdgeColoCode":"YUL",
"EdgeColoID":70,
"EdgeEndTimestamp":1616025600399000000,
"EdgePathingOp":"wl",
"EdgePathingSrc":"macro",
"EdgePathingStatus":"nr",
"EdgeRateLimitAction":"",
"EdgeRateLimitID":0,
"EdgeRequestHost":"REDACTED.com",
"EdgeResponseBytes":27672,
"EdgeResponseCompressionRatio":3.78,
"EdgeResponseContentType":"text/html",
"EdgeResponseStatus":200,
"EdgeStartTimestamp":1616025598083000000,
"FirewallMatchesActions":[],
"FirewallMatchesRuleIDs":[],
"FirewallMatchesSources":[],
"OriginIP":"",
"OriginSSLProtocol":"unknown",
"OriginResponseBytes":0,
"OriginResponseDurationMs":0,
"OriginResponseHTTPExpires":"",
"OriginResponseHTTPLastModified":"",
"OriginResponseStatus":0,
"OriginResponseTime":0,
"WAFAction":"unknown",
"WAFFlags":"0",
"WAFMatchedVar":"",
"WAFProfile":"unknown",
"WAFRuleID":"",
"WAFRuleMessage":"",
"WorkerCPUTime":18290,
"WorkerStatus":"ok",
"WorkerSubrequest":false,
"WorkerSubrequestCount":4
}
This example came from a log file with 3,765 entries. Of those, 403 logs have "OriginResponseDurationMs":0, "CacheCacheStatus":"unknown"
. Some more example Ray IDs are 631a2dfbdf76e35a, 631a2d9d586d02b8, 631a2d433a64c510, and 631a2d0718e0023b.
Can anyone help me interpret these logs? Thank you!