---
title: Common calculations FAQ · Cloudflare Logs docs
description: Learn more about calculating bytes served by the origin and bandwidth usage.
lastUpdated: 2025-01-28T10:33:17.000Z
chatbotDeprioritize: false
source_url:
  html: https://developers.cloudflare.com/logs/faq/common-calculations/
  md: https://developers.cloudflare.com/logs/faq/common-calculations/index.md
---

[❮ Back to FAQ](https://developers.cloudflare.com/logs/faq/)

## How can I calculate bytes served by the origin from Cloudflare Logs?

The best way to calculate bytes served by the origin is to use the `CacheResponseBytes` field in Cloudflare Logs, and to filter only requests that come from the origin. Make sure to filter out `OriginResponseStatus` values `0` and `304`, which indicate a revalidated response.

## How do I calculate bandwidth usage for my zone?

Bandwidth (or data transfer) can be calculated by adding the `EdgeResponseBytes` field in HTTP request logs. There are some types of requests that are not factored into bandwidth calculations. In order to only include relevant requests in calculations, add the filter `ClientRequestSource = 'eyeball'`.
