Logs - difference between CacheResponseBytes and EdgeResponseBytes?

Hello, I am parsing logs to see how many .mp3’s are consumed on our site and I need the download size. I don’t understand the difference between CacheResponseBytes and EdgeResponseBytes, would I use both metrics to understand how many bytes the client downloaded to list? What’s the difference between ‘Cache’ and ‘Edge’… I thought the ‘Edge’ server was the cache?

Thanks!

see https://developers.cloudflare.com/logs/reference/log-fields

CacheResponseBytes Number of bytes returned by the cache

and

EdgeResponseBytes Number of bytes returned by the edge to the client

one is from cache and one is by the cdn edge as a response from Cloudflare can either be cached or not cached.

and https://developers.cloudflare.com/logs/reference/glossary

Total bandwidth (Total egress bandwidth, Edge bandwidth)

The amount of data transferred from Cloudflare to end users within a certain period of time. Total bandwidth equals the sum of all EdgeResponseBytes for a certain period of time.

Okay so the EdgeResponseBytes is what I should use to calculate the total bytes downloaded?

Thank you!

Correct

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.