Get download bandwidth per month

1. The problem I’m having:

I want to know how much data have been downloaded from Caddy in a given month. Either for the whole instance or for a certain host and path (e.g. www.example.com/files/*).

My idea was to look at access logs and sum the Content-Length headers of all 2xx requests. Is there a better way to do this with Caddy?

2. Error messages and/or full log output:

I don’t use Caddy yet.

3. Caddy version:

Latest

4. How I installed and ran Caddy:

Nix

a. System environment:

NixOS, physical hardware, I have full control of the whole environment.

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