copy pasted from a private channel (my own message/answer to be clear lol). re: Cache API analytics

copy pasted from a private channel (my own message/answer to be clear lol).

re: Cache API analytics: You can see Cache API events in logpush HTTP. e.g.:

{
  "ClientRequestSource": "edgeWorkerCacheAPI",
  "ClientIP": "2a06:98c0:3600::103",
  "ClientRequestHost": "ai.moda.invalid",
  "ClientRequestMethod": "PUT",
  "ClientRequestURI": "/get_products/1e347d6d6f008724dcc72f5b6b576c1ef6a6bd6c25443a54ee39041df34ed70eae435cc5f261655414bfa08ef50f4296dd3b13c82546136ba81e73ef4c275f70",
  "EdgeEndTimestamp": "2023-06-27T17:18:21Z",
  "EdgeResponseBytes": 355,
  "EdgeResponseStatus": 204,
  "EdgeStartTimestamp": "2023-06-27T17:18:21Z",
  "RayID": "7ddf5946a1ea006d",
  "WorkerCPUTime": 0,
  "WorkerStatus": "unknown",
  "WorkerSubrequest": true,
  "WorkerSubrequestCount": 0,
  "WorkerWallTimeUs": 0,
  "ZoneName": "ai.moda"
}

https://developers.cloudflare.com/logs/reference/clientrequestsource/

In a reallllly roundabout way you could probably make passthrough Worker that acts as an S3 endpoint, and then use the Workers Analytics Engine to log ClientRequestSource.
Was this page helpful?