All articles
SEO & GrowthNovember 28, 2026 6 min read

Log-File Analysis for Programmatic SEO: Finding the Pages Googlebot Actually Cares About

GSC tells you what Google indexed. Log files tell you what Googlebot actually hits. Here's how we use raw server logs to find crawl waste, prioritize refreshes, and stop shipping programmatic pages into the void.

Google Search Console will happily show you which pages got indexed, which got discovered-but-not-indexed, and which got quietly dropped. What it will not tell you — at least not with the resolution you need on a 200,000-URL programmatic site — is which pages Googlebot keeps coming back to, which ones it has written off, and which ones are burning crawl budget on 302 chains nobody noticed.

For that, you need the logs. Raw server logs, unsampled, with user agents and status codes intact. This is the audit layer most programmatic SEO stacks skip, and it's usually where the biggest wins hide.

Why GSC's Crawl Stats Aren't Enough

The Crawl Stats report in GSC is a useful starting point. It will show you host load, response code distribution, and a sampled list of URLs. The problem is the word sampled. On a site with hundreds of thousands of templated pages, a sample of a few thousand URLs per day tells you almost nothing about the long tail — which is exactly where programmatic SEO lives or dies.

Logs give you the full picture:

  • Every Googlebot hit, timestamped
  • The exact URL, including query strings
  • Response code and byte size
  • Referrer and user agent (so you can separate Googlebot Smartphone from Googlebot Image from the imposters)
  • How often a given URL gets recrawled

That last one is the signal that matters most. Recrawl frequency is Google's implicit vote on how important a page is. If a product category page gets hit twice a day and a sibling category hasn't been crawled in six weeks, you have a priority signal no other tool will give you.

Verifying Googlebot (because half the traffic lies)

Before you analyze anything, filter out fake Googlebot traffic. A surprising share of requests claiming to be Googlebot are scrapers, SEO tools, or outright bad actors. The verification is a reverse DNS lookup followed by a forward lookup — Google documents this, and it's worth doing properly.

import socket

def is_real_googlebot(ip: str) -> bool:
    try:
        host = socket.gethostbyaddr(ip)[0]
        if not (host.endswith('.googlebot.com') or host.endswith('.google.com')):
            return False
        forward = socket.gethostbyname(host)
        return forward == ip
    except socket.herror:
        return False

Cache the results. You'll see the same IPs repeatedly, and DNS calls get expensive at scale.

Getting the Logs Into a Queryable Shape

The shape of your ingestion pipeline depends on where your logs live. CDN logs (Cloudflare, Fastly, CloudFront) are usually easier to work with than origin logs because they already capture the full edge traffic. If you're behind a CDN, use its log export — origin logs will miss anything served from cache, which on a well-tuned site is most of it.

A pipeline we've used on several client projects:

  1. Ship logs to object storage (S3, GCS) in hourly batches
  2. Parse and normalize into Parquet with a scheduled job
  3. Load into DuckDB or BigQuery for ad-hoc analysis
  4. Materialize a daily bot_hits table keyed by URL and date

DuckDB is genuinely good for this. You can run a month of logs — tens of millions of rows — on a laptop without breaking a sweat.

-- Top 50 URLs by Googlebot hits in the last 30 days
SELECT 
  url,
  COUNT(*) AS hits,
  COUNT(DISTINCT DATE(ts)) AS days_crawled,
  AVG(status) FILTER (WHERE status >= 400) AS error_rate,
  MAX(ts) AS last_seen
FROM bot_hits
WHERE user_agent_class = 'googlebot_smartphone'
  AND ts >= CURRENT_DATE - INTERVAL 30 DAY
GROUP BY url
ORDER BY hits DESC
LIMIT 50;

What to normalize before you query

Raw URLs are hostile to analysis. Before loading, strip or canonicalize:

  • Tracking parameters (utm_*, gclid, fbclid)
  • Session IDs
  • Trailing slashes (pick one and stick to it)
  • Case (hostnames are case-insensitive, paths technically aren't but should be)

Also tag each URL with its template type. For a programmatic site, this is the unlock. If you can join bot_hits against a url_template table, you can ask questions like "what percent of crawl budget does the /city/:slug template consume versus the /city/:slug/service/:slug template?"

The Four Questions Worth Asking

Once the data is queryable, we run the same four diagnostics on every programmatic site.

1. Where is crawl budget leaking?

Group hits by status code and by URL pattern. You're looking for:

  • 404s that Googlebot keeps retrying (usually from stale internal links or old sitemaps)
  • 301/302 chains where Google is hitting the redirect, not the destination
  • Parameterized URLs that shouldn't be crawlable at all (filter combinations, sort orders)
  • Soft 404s returning 200 with thin or empty content

On one e-commerce project we found 38% of Googlebot requests were hitting faceted URLs we thought were blocked. The robots.txt rule was correct; the problem was an old XML sitemap still being referenced. Six weeks to clean up, immediate recovery in crawl frequency on money pages.

2. Which templates earn their keep?

Join bot hits against organic traffic from GA4 or GSC, grouped by template. You'll usually find a Pareto distribution — a few templates drive the vast majority of organic sessions, and some templates consume crawl budget while contributing nothing.

The honest question: should those underperforming templates exist? If a template has 40,000 URLs, pulls 15% of Googlebot hits, and contributes less than 1% of organic clicks, you have three options — improve the content, consolidate the URLs, or noindex the lot. Doing nothing is also a choice, and it's usually the wrong one.

3. What's the recrawl cadence of your important pages?

For every URL you consider commercially important, compute days-since-last-crawl. Sort descending. The URLs at the top of that list are the ones Google has cooled on — often because internal linking has shifted away from them, or because they haven't been updated in a long time.

This is a much better refresh queue than anything based purely on ranking drops, because it catches pages before they decay in SERPs.

4. How fast does Google find new pages?

For newly published URLs, measure time from first appearance in your sitemap to first Googlebot hit. On a healthy site with good internal linking this should be hours to a couple of days. If it's weeks, your discovery is broken — usually a sitemap or internal linking problem.

Feeding the Insights Back Into the Content Engine

Log analysis is only useful if it changes what you ship. We wire the outputs back into the content pipeline in three places:

  • Refresh queue: URLs with high historical crawl frequency but declining recrawl rate get prioritized for content updates
  • Pruning queue: URLs with sustained zero crawl activity over 90+ days get reviewed for consolidation or removal
  • Template scoring: New programmatic templates have to beat a crawl-efficiency threshold within 60 days of launch, or they get pulled

This is the same mindset we apply across our SEO and growth engineering work — treat the content system like any other production system, with observability and feedback loops.

A note on sampling for very large sites

If you're running a site with hundreds of millions of URLs, keeping every bot hit for a year is expensive. Rotate — keep 90 days of full-fidelity data, then roll up to daily aggregates per URL for longer-term trending. You lose some granularity, but you keep the recrawl-cadence signal, which is what matters most.

Common Mistakes We See

A few patterns that burn teams:

  • Analyzing origin logs behind a CDN. You'll miss most of the traffic. Use edge logs.
  • Trusting the user agent string. Verify. Always.
  • Treating all Googlebot traffic as equal. Smartphone, desktop, Image, and Video bots behave differently and crawl different things. Separate them.
  • Ignoring non-200 responses. The errors are where the story is.
  • Running analysis once and calling it done. Crawl patterns shift. Make it a weekly report, not a one-off audit.

Where We'd Start

If you've never looked at your logs, don't try to build the full pipeline on day one. Pull one week of edge logs, filter to verified Googlebot, and run three queries: top URLs by hit count, status code distribution by URL pattern, and days-since-last-crawl for your top 100 commercial URLs. You'll find something worth fixing in an afternoon. Build the pipeline after you've proven to yourself the data is worth the effort — it almost always is.

#SEO#Programmatic SEO#Technical SEO#Analytics#Log Analysis

Want a team like ours?

72Technologies builds production software for the kind of teams who actually read this blog.

Start a project