From Invisible to #1 on Google Maps. · 14 years experience · Book your free audit claim yours →
Advanced SEO Guide

Log File Analysis for SEO Crawl Budget and Indexation Wins

Find how search bots actually crawl your site, then fix crawl waste, orphan pages, redirect chains, and indexation gaps.

For: technical SEOs, developers, and site operators managing more URLs than they can manually inspect

The script.js example from this guideA code editor showing the first lines of the script.js example used in the guide.script.js1^/$ => home2^/services/[^/]+/$ => service hub3^/locations/[^/]+/$ => city hub4^/locations/[^/]+/[^/]+/$ => city x service5^/blog/ => blog6\?.*(utm_|gclid|sort=|page=) => parameter var…7^/wp-json/|^/feed/|^/tag/ => system and arc…8.* => otherReal bot hitsWhat Googlebot requested,not what a crawler guessedCrawl wasteParameters, redirects anderror URLs eating requestsNeglected UR…Money pages Google rarelyrevisits
Real bot hitsWhat Googlebot requested, not what a crawler guessed
Crawl wasteParameters, redirects and error URLs eating requests
Neglected URLsMoney pages Google rarely revisits
VerificationReverse DNS to separate real bots from spoofs

Search Console tells you what Google decided about a URL. Server logs tell you what Googlebot actually did: every request, with a timestamp, a status code and a response time. That difference matters when a site has more URLs than anyone can inspect by hand, such as a multi-location brand with a few hundred templated city pages, a WooCommerce store with filter parameters, or a WordPress install that has accumulated years of tag archives. This guide is about the workflow: where to get the logs, how to trust them, how to cut them, and what to change once you can see the waste.

It is deliberately narrower than our other crawl guides. For how the pipeline works in theory, read how search engines crawl, render and index your site. For decoding the statuses Search Console shows, use the crawl error triage guide. Here we start from raw requests.

Best use case: a template-level crawl report: for each page type, how many verified Googlebot requests it received, what status codes came back, and how that compares with the pages you actually want crawled.

When logs are worth the effort, and when Crawl Stats is enough

Google's own guidance frames crawl budget as a concern mainly for very large sites (on the order of a million or more URLs) and for mid-size sites whose content changes daily. A 60-page contractor site does not have a crawl budget problem; if its new pages are not indexed, the cause is almost always quality, internal linking or a technical block. Spend log-analysis time when at least one of these is true:

  • The site generates URLs programmatically: city and service combinations, filters, calendars, internal search, tracking parameters.
  • Search Console shows large counts of "Discovered, currently not indexed" or "Crawled, currently not indexed" and you cannot tell why.
  • New or updated pages take weeks to appear, while the site keeps adding thousands of URLs.
  • You have just migrated and need proof that Googlebot is following the redirects and recrawling the new URLs.
  • Page speed or server errors might be throttling Googlebot (Google slows its crawl when a host responds slowly or returns errors).

Before you request logs, look at the free alternative: the Crawl Stats report in Search Console (Settings, then Crawl stats, available for domain-level properties). It summarizes requests by response code, file type, purpose (discovery or refresh) and Googlebot type, plus average response time and host status. It cannot show you individual URLs, so it answers "is something off?" but not "which section is eating the crawl?". Logs answer the second question.

QuestionCrawl StatsPages reportServer logs
Is Googlebot crawling more or less than last month?YesNoYes
Which URL patterns get the most requests?NoNoYes
Which indexable pages has Google never requested?NoPartly (as "Discovered")Yes, by comparison with your URL list
How many requests hit redirects and error pages?Totals onlySampled examplesEvery URL
Did Googlebot request the page after I published it?NoLast crawl date for one URLYes, with exact times
Are AI and other bots using resources?NoNoYes

Getting the data: what to ask for and where it hides

Raw access logs live wherever requests terminate. On a traditional server that is the web server's access log (nginx or Apache, usually in combined log format). Behind a CDN or WAF, the origin logs may show only cache misses, so Googlebot hits served from the edge never appear; ask for the CDN's request logs instead (most major CDNs offer a log export or streaming option, sometimes on higher plans). Many managed and static hosts do not expose raw logs at all, in which case the edge or CDN layer is the place to look. If you cannot get logs anywhere, say so plainly in your audit and fall back to Crawl Stats plus a crawler-based analysis.

Request at least 30 days, and 60 to 90 if you can get it, so that weekly patterns and slow-recrawled sections show up. The fields you need per request:

  1. Timestamp, with time zone.
  2. Full request path including the query string (parameter waste is invisible without it).
  3. HTTP status code.
  4. User agent string.
  5. Client IP address (required for verification; strip or hash it after you have verified).
  6. Response time or time to first byte, and bytes sent, if available.
  7. Cache status at the CDN, if available.

Treat logs as personal data: they contain visitor IP addresses. Filter to bot traffic early and discard human rows, or follow your retention and privacy policy for the rest.

Verify Googlebot before you believe the user agent

Any script can send "Googlebot" in its user agent header, and scrapers do. If you analyze unverified rows, your numbers are inflated by impostors and you may "fix" crawl patterns that Google never produced. Google documents two ways to verify a request, and you should do one of them on the IPs in your data:

  1. Reverse DNS with forward confirmation. Run a reverse lookup on the IP (for example host 192.0.2.10). A genuine Google crawler resolves to a hostname under googlebot.com, google.com or googleusercontent.com. Then resolve that hostname forward and confirm it returns the same IP. Both steps are needed, because anyone can set a fake reverse record on their own address.
  2. Match against Google's published IP ranges. Google publishes machine-readable lists of the address ranges used by its crawlers. Match each IP against the current list in your pipeline. This is faster at scale than millions of DNS lookups, but refresh the list regularly since ranges change.

Do the same for Bing and for any AI crawler you want to count, using each operator's published ranges or verification method. Everything that claims to be a bot but fails verification goes in a separate "spoofed" bucket. A large spoofed bucket is not a crawl budget finding; it is a security and server-load finding, to be handled with a WAF rule or rate limit rather than with SEO changes.

Also separate the legitimate Google user agents, because they mean different things. Googlebot Smartphone is the main indexing crawler under mobile-first indexing. Googlebot Desktop, Image, Video and News crawlers behave differently. AdsBot and similar ads crawlers follow landing pages for ad quality and should be excluded from SEO crawl counts. Google's URL inspection and other tools fetch on demand and appear as their own agent; those hits reflect people clicking buttons, not organic crawl demand.

Segment by template, not by URL

A log file for a busy site has millions of rows, and nobody reads URLs individually. The unit of analysis is the page template, defined by a path or parameter pattern. Build a small mapping table, applied in order, from regular expressions to labels. For a multi-location service business it might look like this:

^/$                         => home
^/services/[^/]+/$          => service hub
^/locations/[^/]+/$         => city hub
^/locations/[^/]+/[^/]+/$   => city x service
^/blog/                     => blog
\?.*(utm_|gclid|sort=|page=) => parameter variant
^/wp-json/|^/feed/|^/tag/   => system and archive
.*                          => other

Join each verified Googlebot request to its template and tabulate, for each template: requests, unique URLs requested, share of total requests, status code mix, and median response time. Then compare the request share with the share of the site that template represents and, more importantly, with the share of revenue it drives. If "parameter variant" and "system and archive" absorb a third of Googlebot's requests while the city-by-service pages that produce calls get a trickle, you have found the problem without opening a single page.

The seven cuts that find most problems

Once the data is verified and labelled, these views surface nearly every actionable issue. Each has a typical cause and a typical fix.

CutWhat to look forUsual cause and fix
Requests by status codeHigh share of 3xx, 4xx or 5xxOld internal links pointing at redirected URLs; fix the links, not just the redirects. 5xx spikes point to capacity or deploy problems.
Redirect chains and loopsURLs that return 301 to another 301Layered migrations or HTTP to HTTPS plus slash rules stacking up; collapse to one hop.
Parameter URLsMany unique query strings per pathSort, filter, session or tracking parameters with crawlable links; see the faceted navigation guide.
Priority URLs never requestedPages in the sitemap with zero Googlebot hitsNo internal links (an orphan), sitemap entry ignored, or low-value signals. Fix with links and consolidation.
Crawled URLs not in the sitemap or site graphBot hits on URLs your crawler never foundOld URLs still linked externally, forgotten sections, or script-generated links. Remove, redirect or block.
Recrawl frequency by templateTime between hits for the same URLMoney pages revisited monthly while archives are hit daily; strengthen internal links and freshness signals on money pages.
Response time by templateSlow medians on specific sectionsUncached heavy templates; see TTFB optimization and the CDN guide.

The "priority URLs never requested" cut is the most useful one for local sites. Export the URLs you want ranked (service pages, city pages, key blog posts), left join them to the log, and sort by zero hits. Any page on that list that Google has not requested in 30 to 90 days is not being treated as important. Pair the result with an orphan page check, because zero crawl and zero internal links usually travel together.

A worked example, with illustrative numbers

Take a hypothetical regional HVAC company with 40 city pages, 12 service pages, 180 blog posts, and a booking calendar plugin. Imagine the 30-day log shows these shares of verified Googlebot Smartphone requests (illustrative, not a benchmark):

TemplateShare of requestsFinding
Calendar and booking URLs with date parametersLargeAn endless date picker generates a new crawlable URL for every month. Add nofollow or remove the links, disallow the path in robots.txt, and keep the real booking page indexable.
Blog tag and author archivesModerateThin archives are being crawled more than the posts they list. Noindex and remove from sitemaps, or retire the taxonomy.
Redirected URLs from a past rebrandModerateInternal links and the sitemap still use old paths. Update them to the final URLs.
City pagesSmallRevisited roughly monthly. Add links from service hubs, the footer and related posts; they were two clicks from nowhere.

None of those fixes needs an advanced tool. They need a clear view of where requests go, which is exactly what the log provides. The calendar fix is also a good reminder of the order of operations: block crawling with robots.txt only for URLs you are happy to leave uncrawled forever. If URLs are already in the index and you want them removed, they need to be crawlable long enough to show a noindex, as the index bloat cleanup guide explains.

Turn findings into changes and prove they worked

Rank fixes by how much crawl they free and how close the starved pages are to revenue. In practice the order is: stop generating infinite URL spaces, correct internal links and sitemaps that point at redirects and errors, fix server errors and slow templates, then add internal links to underserved money pages. Document each change with a date, because logs make the effect measurable.

  • Re-cut the same report 2 to 4 weeks later. The share of requests going to the wasteful template should fall, and requests to the priority templates should rise or at least become more frequent.
  • Watch discovery-to-crawl time on new pages. The gap between publish time and first verified Googlebot hit is a direct crawl health metric. Tighten it with sitemap updates and internal links from pages that are crawled often.
  • Check Search Console in parallel. Crawl Stats should show the same direction as your logs, and indexed page counts for the fixed sections should follow with a lag. The XML sitemap strategy guide covers using segmented sitemaps to read those counts.
  • Do not expect rankings to jump from crawl changes alone. Crawl efficiency gets pages discovered and refreshed faster. Ranking still depends on the page being worth ranking.

Finally, set up a lightweight recurring report instead of a one-off audit. A weekly or monthly job that verifies bots, labels templates and charts requests, status mix and response time will catch the next plugin that creates a million URLs long before Search Console starts complaining.

FAQ

How much log data do I need for a crawl budget analysis?

At least 30 days, and 60 to 90 days if you can get it. Googlebot revisits important pages often but some sections are only recrawled every few weeks, so a shorter window makes slowly crawled templates look ignored when they are not.

Do small local business sites need log file analysis?

Usually not. Google's crawl budget guidance is aimed at very large sites and sites with rapidly changing content. For a site with a few dozen or a few hundred pages, Search Console's Crawl Stats report and the Pages report are normally enough. Logs become worthwhile when the site generates URLs programmatically or when indexing problems persist without an obvious cause.

How do I know a request in my logs is really Googlebot?

Do not trust the user agent alone. Run a reverse DNS lookup on the IP, confirm the hostname ends in googlebot.com, google.com or googleusercontent.com, then resolve that hostname forward and confirm it returns the same IP. Alternatively, match the IP against the ranges Google publishes for its crawlers.

What if my host or CDN does not give me raw logs?

Use the Crawl Stats report in Search Console for the overall pattern, and run a JavaScript-enabled crawler on the site to model link paths and find parameter or redirect waste. You can also ask whether the CDN, WAF or load balancer can export request logs even if the origin server cannot. Treat the result as less precise than real logs and say so in your findings.

Does blocking low-value URLs in robots.txt improve rankings?

Not directly. Blocking stops Googlebot spending requests on those URLs, which can help discovery and refresh of important pages on large sites. It does not remove URLs that are already indexed, and Google cannot see a noindex on a blocked page. For indexed junk, let Google crawl a noindex or a redirect first, and block only afterwards if you still need to.

Turn this into a practical SEO action plan

Use RankLocalToday tools to check rankings, diagnose website issues, and prioritize the next organic traffic move.

Get your SEO plan →