Log File Analysis
Log file analysis is the practice of parsing server access logs to see every request search engine crawlers made — the ground truth of crawl behavior that Search Console's sampled Crawl Stats report only approximates.
Every request a server answers writes one log line: requesting IP, timestamp, method, URL, status code, response size, and user agent. Filtering those lines to search engine bots produces a complete census of crawler activity — exactly which URLs Googlebot fetched, when, how often, and what the server returned. No other data source has this completeness: Search Console's Crawl Stats report shows aggregate totals and a capped sample of example requests, while logs record every fetch.
That completeness is what makes logs the instrument for crawl budget work. They show where fetches actually go — which directories Googlebot favors, how much crawl rate is burned on parameter variants, redirect hops, and 404s, and which URLs get no bot visits at all.
One caveat governs the setup: on CDN-fronted sites, requests served from edge cache never reach the origin, so origin-only logs undercount crawler activity. Pull edge logs from the CDN to get the full record.
En bref
What does log file analysis show that Search Console cannot?
Logs show every request; Crawl Stats aggregates and samples. The Crawl Stats report (Search Console → Settings → Crawl Stats) charts totals by response code, file type, purpose, and Googlebot type, but its per-URL evidence is a limited list of example requests.
Only logs give you:
- Per-URL fetch history — every hit on every URL with exact timestamps
- Complete status-code accounting — which specific URLs return HTTP status codes like 301, 404, or 500 to bots
- All crawlers — Bingbot and every other bot, not just Google
- Zero-crawl URLs — pages Googlebot never requested, invisible in any report built from what Google did fetch
How do you verify real Googlebot in log files?
Never trust the user-agent string — any scraper can send Googlebot/2.1. Verify the requesting IP with either of Google's two documented methods before counting a request as Googlebot:
- 1Reverse-forward DNS: reverse-resolve the IP; a genuine hit resolves to a hostname ending in
googlebot.comorgoogle.com; forward-resolve that hostname and confirm it returns the original IP - 2Published IP ranges: match the IP against the machine-readable list of Googlebot ranges Google publishes as a JSON file
Run verification as the first pass over the log set. On sites with scraper traffic, a meaningful share of self-declared Googlebot requests fails the check — leaving them in corrupts every downstream metric.
Which metrics should you extract from crawler logs?
Five extractions cover most diagnostic value:
- Crawl frequency by directory — fetches per section per day, exposing which templates Googlebot values and which it neglects
- Wasted-fetch share — the percentage of fetches spent on parameter variants, redirect hops, and 404s instead of indexable content
- Status-code distribution — the response mix served to bots; rising 4xx/5xx shares depress crawling
- Orphan URLs — subtract logged bot hits from your XML sitemap inventory; URLs with zero fetches are orphan pages or crawl-neglected sections
- Discovery-to-crawl lag — the delta between a URL's publication or submission and its first Googlebot fetch; a growing lag is the log-side signature of a Discovered – currently not crawled backlog
Questions fréquentes
How much log history do you need?+
Enough to cover full recrawl cycles — 30 days is the working minimum. Sections Googlebot visits monthly look orphaned in a 7-day window, and discovery-to-crawl lag can only be measured across the span it actually takes.
Is log analysis necessary if you already use the Crawl Stats report?+
For large sites, yes. Crawl Stats tells you the 404 share of crawls rose; logs name every 404 URL Googlebot hit and how often. Trend monitoring belongs to Crawl Stats, per-URL diagnosis belongs to logs.
Where do you get logs on a CDN-fronted site?+
Export edge logs from the CDN. Requests answered from edge cache never reach your origin server, so origin logs alone miss a large share of bot hits on any well-cached site.