Skip to content



Sanity Log Analyzer - Find What's Eating Your Sanity Usage

A quick walkthrough of Sanity Log Analyzer, our internal tool that turns your Sanity request logs into a usage report. It shows which queries, images and files are eating your usage, when traffic s…

Frequently asked questions

What is Sanity Log Analyzer?
Sanity Log Analyzer is an internal tool that generates a detailed report of your Sanity usage and provides optimization suggestions for your Sanity Studio. It shows you exactly where you're spending your Sanity tokens and highlights areas where you can improve performance and efficiency.
Who should use Sanity Log Analyzer?
We built this tool primarily for developers and larger teams, but it's open to anyone. Small teams are welcome to try it out and see if it helps optimize their Sanity setup.
How do I get started with Sanity Log Analyzer?
Go to the user section in Sanity, scroll all the way down, and download your logs. After unzipping the file, rename it to something simple like 'log' to avoid issues with spaces that macOS sometimes adds. Then run the analyzer with your log file.
What information does the analyzer show me?
The analyzer gives you an overall report of where you're spending the most Sanity tokens, breaks down costs by category like settings and images, shows you traffic patterns and which days had high traffic, displays IP addresses, and helps you identify which files need optimization because they're using too many tokens.
Can I filter the data in the report?
Yes, some categories in the report are filterable. You can click on those categories to drill down and see detailed data related to that specific area. Keep in mind that not everything is filterable, as some data types can't be queried that way.
What should I look for in the log analyzer results?
Start by looking at your overall token spending and identify which areas are costing you the most. Common culprits include settings and large images. Pay attention to traffic patterns and any spikes in usage, then focus on optimizing the biggest token consumers first.
Why would I want to analyze my Sanity logs?
You'd be surprised what you find out about your Sanity usage. Analyzing your logs helps you identify hidden inefficiencies, reduce token costs, and improve your Studio's performance by understanding exactly where your resources are going.


Continue watching

Get in touch

Tell us what you're building. We reply within one working day. Jono or someone on the team picks up every message personally.

By sending this you agree to our privacy policy. We only use your details to reply.