---
title: "Egress and Ingress Utilization: Calculating Using Bucket Logs"
slug: "how-to-calculate-ingress-and-egress-utilization-using-bucket-logs"
updated: 2026-02-17T18:46:52Z
published: 2026-02-17T18:46:52Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wasabi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Egress and Ingress Utilization: Calculating Using Bucket Logs

## Checking Egress (Download/List) for Your Wasabi Account

Wasabi expects all customers to adhere to the customer agreement on [Wasabi’s free egress policy](https://wasabi.com/paygo-pricing-faq/#free-egress-policy) (https://wasabi.com/paygo-pricing-faq/#free-egress-policy).

You can use [bucket-logging](https://docs.wasabi.com/docs/how-do-i-get-console-user-access-audit-logs) to audit all activities performed on your bucket(s) and monitor the data READ from Wasabi servers and databases during GET and LIST operations. To see egress statistics for your overall account for a defined timeframe:

1. Download the utilization tool:
  - [MacOS](https://s3.wasabisys.com/customer-egress-model-tools-bucket/wasabi-egress-volume-calculator-v1-mac.zip) (https://s3.wasabisys.com/customer-egress-model-tools-bucket/wasabi-egress-volume-calculator-v1-mac.zip)
  - [Windows](https://s3.wasabisys.com/customer-egress-model-tools-bucket/wasabi-egress-volume-calculator-v1-windows.zip) (https://s3.wasabisys.com/customer-egress-model-tools-bucket/wasabi-egress-volume-calculator-v1-windows.zip)
2. Double-click on the ZIP file and unzip the tool.
3. Once unzipped, double-click to run the tool, for example:

![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/4403027994381.png)
4. Enter your Wasabi access key and secret key.
5. Enter the number of days for which you want to review egress.

![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/image-ZIDKN2QN.png)

You will see a report similar to:

![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/4403323274765.png)

## Generating a Daily Report for Ingress (Upload) and Egress (Download/List)

You can generate a daily report of egress and ingress bytes in Wasabi Hot Cloud Storage by processing S3 bucket access logs with Python. These instructions are designed for users familiar with the AWS CLI, Wasabi, and basic scripting.

Before beginning, be sure the following requirements are met:

- [Python 3.9+](https://www.python.org/downloads) is installed.
- [boto3 library](https://aws.amazon.com/sdk-for-python/) is installed `(pip install boto3)`.
- [tzdata module](https://pypi.org/project/tzdata) if no system time zone data is available `(pip install tzdata)`.
- [AWS CLI](https://aws.amazon.com/cli) is configured with a profile for [Wasabi credentials (access and secret keys)](https://docs.wasabi.com/v1/docs/creating-a-user-account-and-access-key).
- There is a centralized logging bucket. [Enable bucket logging](https://docs.wasabi.com/docs/bucket-logging-enabledisable) for each Wasabi bucket, directing logs to a dedicated centralized bucket for easier management. Logs should be sent to the designated centralized bucket.

Follow the steps below to calculate daily ingress and egress bytes using the provided Python script. The script processes each log file in the logging bucket for today and:

- Identifies upload operations (PUT/POST/MULTIPART) to measure ingress bytes.
- Identifies GET (downloads) and LIST operations to measure egress bytes.
- Outputs total ingress and egress in Bytes and TB per bucket into a CSV report.

Optionally, you can create cron jobs to run this script and automate the daily report generation.

> The accuracy of ingress and egress bytes and TB depends directly on the availability and logging of the bucket logs. **Bucket logging is an essential prerequisite.** Without consistent and correct log files, the report output may be incomplete or inaccurate. For reliable monitoring, always verify that bucket logging is enabled for every source bucket and that logs are being saved to a dedicated, centralized logging bucket.

1. Prepare the environment.
  - Confirm [AWS SDK boto3](https://aws.amazon.com/sdk-for-python/), [Python >= 3.9](https://www.python.org/downloads), and [AWS CLI](https://docs.wasabi.com/v1/docs/how-do-i-use-aws-cli-with-wasabi) are set up.
  - Ensure your Wasabi credentials are available via an [AWS CLI profile](https://docs.wasabi.com/v1/docs/how-do-i-use-aws-cli-with-wasabi#configuring-aws-cli-using-the-configure-command).
2. Download the script. Use the provided Python script (`wasabi_ingress_egress.py`) for log analysis:

[wasabi_ingress_egress.py](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/wasabi_ingress_egress.py)
3. Run the script.

```plaintext
python3 wasabi_ingress_egress.py --logging-bucket <log_bucket_name> --region <Logging_bucket_region> --profile <aws_profile>
            
```

![Screenshot 2025-09-08 125716.png](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/Screenshot%202025-09-08%20125716.png)

If parameters are omitted in the command, the script will prompt for them interactively.

```plaintext
python3 wasabi_ingress_egress.py
            
```

![Screenshot 2025-09-08 124910.png](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/Screenshot%202025-09-08%20124910.png)

Output will be a CSV file summarizing ingress and egress per bucket for the current day.
  - Save the script as `wasabi_ingress_egress.py`.
  - From the command line, navigate to the folder containing the script and run:

An output example is:

| date_local | bucket | total_ingress_bytes | total_ingress_tb | total_egress_bytes | total_egress_tb |
| --- | --- | --- | --- | --- | --- |
| 9/8/2025 | test-olue1 | 124565 | 0 | 1209462790553.6 | 1.21 |

Verify the output. Inspect the generated CSV to confirm that the data matches the expected operations. If log files are missing, verify bucket logging settings.

For billing or compliance inquiries, contact [Wasabi Support](mailto:support@wasabi.com) referencing this report.
