Need help with high bandwidth on Sanity business plan, looking for more details on the dashboard.

3 replies
Last updated: Sep 14, 2023
hi all - need some help. We're on the Sanity business plan the first month and we are hitting bandwidth overages, but it doesn't show a lot of details on the dashboard - so there's no way we can assess and see how we can resolve. Is there a way to see more details as to what is reason for the high bandwidths? thanks
AI Update

I hear you on the bandwidth overage frustration! The good news is that Sanity does provide tools to dig into this, though it depends on your plan level.

Since you're on the Business plan, you should have access to Request Logs, which is exactly what you need to understand your bandwidth usage. Here's what you can do:

Accessing Your Request Logs:

  1. Go to sanity.io/manage and navigate to your project
  2. Click into the Usage section in your project settings
  3. Scroll to the bottom of the page where you'll find the option to download request logs

What You'll Get:

The logs come as compressed NDJSON files and include detailed info about every API and CDN request:

  • Request type (API, APICDN, or CDN for assets)
  • Full URLs with query parameters
  • Timestamps
  • IP addresses
  • User agents
  • Referrer information
  • GROQ query identifiers (so you can see which queries are being called most)

This data will show you exactly what's driving your bandwidth usage - whether it's excessive API calls, large asset downloads, or specific queries being hammered.

Analyzing the Logs:

You can process these files with tools like:

  • jq for command-line JSON processing
  • Convert to CSV: gunzip --stdout [logfile].ndjson.gz | npx json2csv --ndjson --output [output].csv
  • Import into Excel/Google Sheets for analysis
  • Use Python/Jupyter notebooks for deeper analysis

Pro tip: Filter out studioRequest entries - those are from Sanity Studio and don't count toward your bandwidth usage or costs.

If you're still having trouble accessing the logs or need help interpreting them, I'd recommend reaching out to Sanity Support directly through the Manage portal - Business plan customers should have access to direct support who can provide more specific guidance for your project and help you optimize your usage.

The request logs should give you the visibility you need to identify the culprit and optimize accordingly!

Please feel free to DM me your project ID and a datetime range, and we can get you some metrics.
just DMed you
Resolved in DM.

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?