Server log files: what Googlebot really does on your site, and when log analysis is worth it

TL;DR

Difficulty: Advanced

Your access log records every request to your site, so it shows what Googlebot actually did, while Search Console shows what Google decided.

  • Verify every bot first: reverse and forward DNS lookup, or Google's published IP ranges. User agents are faked.
  • Group verified Googlebot requests by section and status code to find crawl waste, redirect chains, errors, orphan pages and how long new pages wait.
  • Logs also show AI crawlers and other bots that no Search Console report shows.
  • IP addresses are personal data: keep logs briefly, extract only crawler lines for SEO.
  • Worth it for large sites, shops with filters, relaunches and indexing puzzles. For a small site that is crawled fine, the Crawl Stats report is enough.

Search Console tells you which pages Google indexed. It does not tell you where Googlebot actually spent its visits, which answers your server gave, or which other bots read your site. Your server's access log does. Here is how to read it, how to tell real Googlebot from impostors, what one month of an online shop's logs revealed, what the law says about the IP addresses inside, and when the whole exercise is worth your time.

Search Console tells you what Google decided. Your logs tell you what Google did.

Google Search Console is a summary written by Google about your site. It tells you which pages are indexed, which are not, and roughly how often Google came by. What it does not show you is the raw visit itself: this URL, at this second, by this crawler, with this answer from your server. That record lives in one place only, your server's access log.

Google says as much. In a December 2024 post on how Googlebot crawls, two of Google's own search engineers called a site's raw access logs "the best source" to see what Google is crawling, and the Crawl Stats report in Search Console the "second best"1. For search engine optimisation (SEO), that difference is the whole point. This chapter is about that best source: what a log line contains, how to tell a real Googlebot from an impostor, what the logs reveal that nothing else does, which tools do the work, what the law says about the IP addresses inside them, and, just as important, when the whole exercise is not worth your time.

This is an advanced chapter, but you do not need to be a developer to follow it. If you have read the earlier chapters on how search engines crawl, render and index a website and on Search Console, you have everything you need.

Example: Tom runs Ashby Outdoor (ashbyoutdoor.example), an online shop in Nottingham for garden and outdoor furniture, the example shop of this series. It has 1,850 products in 14 categories and filters for material, colour, size, seats and price. Search Console shows 4,100 pages indexed, 31,000 "Crawled, currently not indexed" and 52,000 "Discovered, currently not indexed". Tom's question is simple: Google is clearly busy on his site, so why are so few of his real pages in the index? Search Console tells him the outcome. Only the logs can tell him where Google's effort actually went. The rest of this chapter answers his question step by step.

What a server access log is

Every time anything requests a file from your website, a browser, Googlebot, a scraper, a monitoring tool, the web server writes one line to a text file called the access log. One request, one line. A page view by a person usually produces dozens of lines, because the page pulls in images, stylesheets and scripts, and each of those is a request too.

The two most common web servers, Apache and nginx, both ship with a standard layout for these lines called the combined log format. Apache documents it field by field2, and nginx defines a format of the same name with the same fields3. Here is one line in that format, as it might appear in Ashby Outdoor's log:

66.249.66.1 - - [14/May/2025:06:25:13 +0100] "GET /garden-furniture/dining-sets?material=teak&colour=grey&seats=6 HTTP/1.1" 200 48211 "-" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.7103.92 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

It looks like noise. It is in fact a complete little record, and every part of it has a meaning.

Part of the lineValue in the exampleWhat it means
Client address66.249.66.1The internet protocol (IP) address that made the request
Identity and user- -Almost always empty on a public website
Time[14/May/2025:06:25:13 +0100]When the request arrived, with the time zone offset
Request lineGET /garden-furniture/dining-sets?material=teak&colour=grey&seats=6 HTTP/1.1The method, the exact URL path with its parameters, and the protocol
Status code200The answer your server gave: 200 is "here it is"
Size48211Bytes sent in the response body
Referrer"-"The page that linked here, if the client says so. Crawlers usually send none
User agentMozilla/5.0 ... Googlebot/2.1 ...What the client says it is

Two warnings from the Apache documentation are worth knowing before you go further. First, the referrer and the user agent are written by the client, not by your server, so they can say anything2. Second, if your site sits behind a proxy or a load balancer, the client address can be the proxy's address rather than the visitor's, unless the server is configured to log the original one2. Both points come back later.

Example: read the line above as Tom would. At 6.25am on 14 May, something calling itself the smartphone version of Googlebot asked for the dining sets category filtered to grey teak sets for six people. The server answered 200 and sent 48 kilobytes. Nobody linked to it from outside (no referrer). One line, and Tom already knows something Search Console never told him: Googlebot is spending requests on a three filter combination that has no business being in the index.

Where to get your logs

The log lives on the server that answers the request. Where that is decides how easy this step is.

  • On your own server or a virtual server, the logs are files, typically in a directory such as /var/log/nginx/ or /var/log/apache2/. Servers rotate them, which means they start a new file every day or week and compress or delete the old ones. Apache notes that logs grow by roughly 1MB per 10,000 requests on a moderately busy server, so rotation is set up from the start2.
  • On shared or managed hosting, the control panel usually has a "raw access logs" download. If it only offers a statistics page, ask the host for the raw files.
  • Behind a content delivery network (CDN), many requests never reach your server because the CDN answers them from its cache. Your server's log then misses those hits, and you need the CDN's own logs as well.
  • On a hosted shop platform you may get no raw logs at all. Ask your provider before you plan anything.
  • On a Ruby on Rails application, such as a Solidus shop, the application's own log is not the access log. The access log comes from the web server or proxy in front of it, which is the file you want.

Thirty days is the right amount for a first analysis: long enough to see patterns, short enough to handle on a laptop.

Example: Ashby Outdoor runs on a virtual server with nginx in front of the shop software. Tom's developer copies the rotated access logs for May 2025, the peak month, into one folder: 31 compressed files with about 6.2 million lines in total. Using Apache's rule of thumb of 1MB per 10,000 requests, that is about 620MB of plain text, which a normal laptop handles without complaint. Tom also checks that the CDN in front of his images is not caching HTML pages. It is not, so the server log holds every page request. His developer added the request time to the log format when the server was set up, so each line also records how long the response took.

Is it really Googlebot? Verify before you count

Anyone can write "Googlebot" into a user agent. Scrapers do it to avoid being blocked, because site owners rarely block Google. Google's own documentation says the user agent is "often spoofed by other crawlers" and tells you to verify a request before you trust it4. If you skip this step, every number that follows is polluted.

Google documents two ways to verify5.

Method one, a reverse and forward lookup in the domain name system (DNS). You ask DNS which name belongs to the IP address, check the name ends in googlebot.com, google.com or googleusercontent.com, then ask DNS which IP address belongs to that name and check you get the same address back. The second lookup matters: anyone who controls an IP range can set its reverse name to something that looks like Google, but they cannot make Google's own DNS point back to them.

# Step 1: reverse lookup. Which name belongs to this IP address?
host 66.249.66.1
# 1.66.249.66.in-addr.arpa domain name pointer crawl-66-249-66-1.googlebot.com.

# Step 2: forward lookup. Does that name point back to the same address?
host crawl-66-249-66-1.googlebot.com
# crawl-66-249-66-1.googlebot.com has address 66.249.66.1
# Same address in both directions, and a googlebot.com name: verified.

Method two, Google's published IP ranges. Google publishes the address ranges of its crawlers as JSON files, one for Googlebot and others for its special purpose crawlers and for fetches triggered by users5. For a big log this is faster than thousands of DNS lookups: you load the list once and check every address against it.

# verify_googlebot.py: mark each address as inside or outside Googlebot's published ranges.
import ipaddress, json, sys, urllib.request

URL = "https://developers.google.com/static/search/apis/ipranges/googlebot.json"
data = json.load(urllib.request.urlopen(URL))
networks = [ipaddress.ip_network(p.get("ipv4Prefix") or p.get("ipv6Prefix"))
            for p in data["prefixes"]]

for line in sys.stdin:                      # one IP address per line
    ip = ipaddress.ip_address(line.strip())
    verified = any(ip in net for net in networks)
    print(ip, "verified" if verified else "NOT Googlebot")

Bing works the same way. Its webmaster team explains that a genuine Bingbot address resolves to a name ending in search.msn.com, and that the forward lookup must lead back to the same address6.

Example: of the 6.2 million lines in Ashby Outdoor's May log, 486,000 requests carry a Googlebot user agent. Tom's developer extracts the distinct addresses and runs them through the script. 452,000 requests come from addresses inside Google's ranges. 34,000, about 7%, come from 41 addresses that are not Google's at all: two hosting companies and a residential network. Those 34,000 are scrapers wearing a Googlebot costume. They go into a separate pile for the security conversation, and from here on every Googlebot figure means the verified 452,000 only.

The light version: the Crawl Stats report

Before you dig into raw files, know what Google already gives you. The Crawl Stats report sits under Settings in Search Console. Google's help page describes it as a report for advanced users and lists what it shows: total crawl requests, total download size, average response time, and breakdowns by response code, file type, crawl purpose (discovery of new URLs or refresh of known ones) and Googlebot type. It also shows host status, meaning whether Google had trouble fetching your robots.txt, resolving your DNS or connecting to your server7.

It has limits, and Google states them. The report only exists for properties at the root of a domain. Its example URLs are a sample, not a list. Each redirect hop counts as a separate request. And Google says its counts can differ slightly from your server logs7.

QuestionPage indexing reportCrawl Stats reportAccess logs
Is this page in the index?YesNoNo
How many requests did Google make?NoYes, totalsYes, every one
Which exact URLs did Google request?SamplesSamplesAll of them
Which status code did each URL get?PartlyGrouped, with samplesEvery request
Was it really Google?YesYesOnly after you verify
What did other bots and AI crawlers do?NoNoYes
How fast was a new page first visited?NoNoYes

Example: Tom's Crawl Stats report for May shows a little under 14,000 crawl requests a day, about 430,000 for the month, with 62% for refresh and 38% for discovery, and "Smartphone" as the dominant Googlebot type. That is close to the 452,000 verified requests in his log, which is reassuring: the two sources agree on the size. But the report's example URLs are a handful of filter pages, and it cannot tell Tom what share of the 430,000 went to filters, which is the one number he needs. That is why he opens the logs.

Where Googlebot's attention really goes

The first and most valuable thing logs show is distribution: of all the requests Googlebot made, how many went to the pages you care about?

Google is clear that the crawling capacity it gives a site is limited. Its guide for large sites explains crawl budget, the number of URLs Google can and wants to crawl, and says the guide matters mainly for sites with more than about a million pages, sites with more than about 10,000 pages that change daily, and sites with a large share of URLs stuck in "Discovered, currently not indexed"8. That last group is the important one for a shop, because a small catalogue can still produce an enormous number of URLs. Google's Gary Illyes wrote in December 2024 that faceted navigation, the filters on a shop's category pages, is "by far the most common source" of overcrawl problems that site owners report to Google9.

To see your own distribution, group every verified Googlebot request for a page by the section of the site it belongs to: product pages, category pages, filter and parameter URLs, guides, old URLs and errors. Count, then divide.

Swaste=HwasteHpagesS_{\text{waste}} = \frac{H_{\text{waste}}}{H_{\text{pages}}}

Here SwasteS_{\text{waste}} is the share of crawl activity spent on URLs that should not be crawled or indexed, HwasteH_{\text{waste}} is the number of verified Googlebot page requests to those URLs, and HpagesH_{\text{pages}} is the total number of verified Googlebot page requests. It is a plain ratio, explained in Foundations: ratios and rates.

Example: of the 452,000 verified Googlebot requests in May, 64,000 are for resources such as scripts, stylesheets, images and the shop's filter data endpoint. The other 388,000 are page requests. Grouped by section:

SectionVerified Googlebot page requestsShare
Filter and parameter URLs269,00069.3%
Product pages54,00013.9%
Category pages, including page 2 and beyond21,0005.4%
Guides and service pages6,0001.5%
Old URLs, redirects and errors38,0009.8%
Total388,000100%

The filter URLs and the old URLs are the waste: 269,000 plus 38,000 is 307,000 requests.

Swaste=307,000388,000=0.791S_{\text{waste}} = \frac{307{,}000}{388{,}000} = 0.791

So Swaste=79.1%S_{\text{waste}} = 79.1\%. Put plainly, 79.1% of Googlebot's page requests went to URLs Tom does not want in the index. Only 81,000 requests, 20.9%, reached products, categories and guides. Behind those 269,000 filter requests sit about 195,700 distinct filter URLs, each visited once or twice. That matches the 210,000 distinct URLs crawled in the month: Googlebot spends its visits spread thinly over an almost endless supply of combinations, while the 1,850 products wait.

Ashby Outdoor, May 2025, 388,000 verified Googlebot page requests. Filter and parameter URLs 269,000 (69.3%), product pages 54,000 (13.9%), category pages 21,000 (5.4%), guides and service pages 6,000 (1.5%), old URLs, redirects and errors 38,000 (9.8%). Tap or click to open full screen and move around

How to fix the filter problem is a chapter of its own: faceted navigation, filters and pagination. The logs' job is to prove the problem and measure the fix.

The status codes your server gives to bots

The second thing logs show is what your server answered. Google documents how it treats each family of status codes10:

  • 2xx (success): the content goes on to processing. It may be indexed, though that is never guaranteed.
  • 3xx (redirects): Googlebot follows up to 10 hops. A 301 or 308 is a strong signal that the target is the page to keep, a 302 or 307 a weak one.
  • 4xx (client errors): the URL is dropped from the index. For 404 and 410, Google gradually crawls the URL less often. A 429 is the exception: Google treats it as a sign of an overloaded server.
  • 5xx (server errors): Google slows down crawling in proportion to the errors, and if they persist, indexed URLs are eventually dropped.

Google also describes the soft 404: a page that answers 200 but is really an error or an empty page10. In a log it looks perfectly healthy, which is why you compare the size of each response too. A category page that normally weighs 48 kilobytes and suddenly weighs 3 is worth opening.

Search Console shows status codes in the Crawl Stats report, but grouped and sampled. The log tells you exactly which URLs got which answer, how often, and when.

Example: here are the status codes behind Ashby Outdoor's 388,000 verified page requests in May.

Ashby Outdoor, May 2025, 388,000 requests. 200: 347,000 (89.4%). 301: 18,000 (4.6%). 302: 6,000 (1.5%). 404: 12,500 (3.2%). 5xx: 4,500 (1.2%). Tap or click to open full screen and move around

At first sight 89.4% success looks healthy. Read the rows behind the bars and four separate problems appear.

  • The 4,500 server errors all hit filter URLs with three or more parameters, mostly between 7pm and 10pm. Those pages run slow database queries. The average response time for filter pages is 1,900 milliseconds against 420 for product pages. Google slows crawling when it meets server errors10, so the useless filter pages are actively making Google more careful with the whole site.
  • The 12,500 not found responses go to 3,900 product URLs deleted when items were discontinued. Google crawls a 404 less and less over time10, so this is not urgent, but 210 of those URLs still have links from Tom's own guides.
  • The 6,000 temporary redirects come from "add to wishlist" links on every product, which send anyone not logged in to the login page with a 302. Every product page hands Googlebot a pointless link.
  • The 18,000 permanent redirects go to 8,400 old URLs from a URL change years ago. 2,100 of them are chains: the old URL redirects to an intermediate URL, which redirects again. Google's large site guide says long redirect chains harm crawling8.

Redirects, old URLs and what a relaunch leaves behind

Old URLs live on in Google's memory long after you have forgotten them. Google keeps requesting URLs it once knew, especially if any link, sitemap or redirect still points at them. The log is the only place where you see which old URLs Google still asks for, and what it gets.

This matters most around a relaunch. The chapter on relaunching a website without losing search traffic builds a redirect map before launch. Logs are how you check it afterwards: every request that ends in a 404 for a URL that used to rank is a hole in the map, and every chain is a redirect that should point straight at its final target.

Example: Tom's developer pulls every verified Googlebot request with status 301 and follows each redirect to its end. Of the 8,400 redirected URLs, 6,300 lead straight to a live page in one hop. 2,100 need two or three hops, because when the category names changed last year, the developer redirected the new names but left the old redirects pointing at the old names. Fixing that means rewriting 2,100 rules so each points directly at its final URL. It is an afternoon's work, and the log will show in June whether the chains are gone.

Orphan pages and pages Google never visits

An orphan page is a page that exists, perhaps in your sitemap or your database, but that no crawlable link on your site points to. Search engines find pages mainly by following links, as the first chapter explains, so an orphan is hard to find and easily treated as unimportant.

Logs find orphans and their close relatives, pages that are linked but never visited, by comparing three lists:

  1. The list of URLs you want indexed, from your sitemap or the shop's database.
  2. The list of URLs a site crawler reaches by following links from the homepage. Tools such as Screaming Frog's SEO Spider do this.
  3. The list of URLs verified Googlebot requested in the month, from the log.

A URL on list one but not on list two is an orphan. A URL on lists one and two but not on list three is linked, yet Google is not coming. Both are worth a look.

C=UcrawledUusefulC = \frac{U_{\text{crawled}}}{U_{\text{useful}}}

Here CC is the crawl coverage of your useful pages, UcrawledU_{\text{crawled}} is the number of useful URLs that received at least one verified Googlebot request in the month, and UusefulU_{\text{useful}} is the number of useful URLs you want indexed. Again a simple ratio, as in Foundations: ratios and rates.

Example: Ashby Outdoor has about 2,600 useful URLs: 1,850 product pages, 100 category and subcategory pages, 450 category pages 2 and beyond, and 200 guides and service pages. In May, 1,980 of them received at least one verified Googlebot request.

C=1,9802,600=0.762C = \frac{1{,}980}{2{,}600} = 0.762

So C=76.2%C = 76.2\%. Almost a quarter of the pages Tom actually sells from, 620 URLs, got no visit from Googlebot in a whole month, while 195,700 filter URLs did. The comparison of the three lists explains the 620:

GroupURLsWhy Googlebot did not come
Products deep in category pagination340Only reachable from page 6 and beyond of large categories
Products only reachable through the new filter140The filter builds its links with JavaScript after the page loads
Orphan products60A seasonal category was removed from the menu, so its products are linked from nowhere
Guides80Linked only from an old blog index that is itself rarely crawled
Total620

The second group ties straight back to the chapter on JavaScript SEO: the log shows Googlebot fetching the filter's data endpoint 22,000 times in May, but not following the product links it produces.

How fast Google finds a new page

When you publish a new product, how long until Googlebot first requests it? No report in Search Console answers that across many pages. The log does, if you know when each page went live: the first verified Googlebot request for the URL minus the publication date is that page's time to first crawl.

For a group of pages, use the median, the middle value when you sort them, rather than the average. The reason is practical: some pages are never crawled in the period at all. You cannot add "never" into an average, but for a median you can simply count them as longer than every other value, and as long as fewer than half are missing, the median is still exact.

t~=median⁡(t1,t2,…,tn),ti=difirst crawl−dipublished\tilde{t} = \operatorname{median}(t_1, t_2, \dots, t_n), \qquad t_i = d_i^{\text{first crawl}} - d_i^{\text{published}}

Here t~\tilde{t} is the median time to first crawl, tit_i is the time to first crawl of page ii, dipublishedd_i^{\text{published}} is the day page ii went live, difirst crawld_i^{\text{first crawl}} is the day of its first verified Googlebot request, and nn is the number of new pages. The median is explained in Foundations: median and mode.

Example: Tom added 64 new products in May. By 31 May, 46 had been requested by verified Googlebot and 18 had not been requested at all. Sorted from fastest to slowest, with the 18 uncrawled ones at the end as "longer than anything", the median of 64 values is the average of the 32nd and 33rd. Both are among the crawled pages, and both are 9 days. So the median new product waited 9 days for its first visit, and more than a quarter waited longer than the month. In peak season, a garden bench that is invisible for nine days misses a good part of its selling window. For comparison, Google's own large site guide says that if your pages are usually crawled on the day they are published, you probably do not need to worry about crawl budget at all8.

Resources and response times

Googlebot does not only request pages. To render a page the way a browser does, Google's Web Rendering Service (WRS) fetches the scripts, stylesheets and images the page refers to. Google explains that these fetches use the crawl budget of the host that serves them, that the rendering service caches resources for up to 30 days, and that changing resource URLs needlessly, for example with a new cache busting parameter on every deploy, makes Google fetch them again1.

A combined format log does not record how long each response took. nginx can log the processing time of every request if you add its $request_time variable to the log format3. It is a one line change and worth making before your first analysis, because slow responses and server errors are what make Google crawl more carefully10.

Example: of the 64,000 resource requests in May, 22,000 go to the filter's data endpoint, 19,000 to images, 14,000 to scripts and 9,000 to stylesheets. Tom's theme adds a new version parameter to every script and stylesheet on each deploy, and the shop deployed 11 times in May. Each deploy shows up in the log as a burst of fresh script and stylesheet requests from Googlebot. Versioning only the files that actually changed would cut that, and the log will show it.

AI crawlers and the other bots in your logs

Googlebot is one visitor among many. Your log also records Bingbot, crawlers from companies building artificial intelligence (AI) models and AI search, archive projects and SEO tools. Search Console shows none of them. If you want to know who reads your site, the log is the only source.

At the time of writing, these are the main crawlers you are likely to see, with what their operators say they are for:

User agent tokenOperatorPurpose, in the operator's words or the source'sFollows robots.txt
GooglebotGoogleCrawling for Google Search4Yes
bingbotMicrosoftCrawling for Bing6Yes
GPTBotOpenAIContent that may be used to train OpenAI's models11Yes
OAI-SearchBotOpenAIShowing websites in ChatGPT's search features11Yes
ChatGPT-UserOpenAIVisits triggered by a person's request in ChatGPT, not automatic crawling11May not apply, as a user asked
PerplexityBotPerplexityShowing and linking websites in Perplexity's search results12Yes
Perplexity-UserPerplexityFetching a page when a user asks a question12Generally not, as a user asked
CCBotCommon CrawlAn open web archive used widely by researchers13Rules to block it are documented
ClaudeBotAnthropicAnthropic's crawler, among the most active AI crawlers Cloudflare measured in 202414

Three points about this table matter more than the names.

First, some controls never appear in a log. Google-Extended is a token you can use in robots.txt to tell Google whether your content may be used for its generative AI models, but Google says crawling is done with its existing user agents15. You will never see a request from Google-Extended, so you cannot measure it in a log, only set it.

Second, the user triggered fetchers are a different kind of visit. A request from ChatGPT-User or Perplexity-User usually means a person asked an assistant a question and the assistant opened your page to answer it. Their operators say robots.txt may not apply to them, because a person initiated the fetch1112.

Third, names can be faked, exactly like Googlebot. OpenAI and Perplexity publish their crawler IP ranges1112, Common Crawl publishes its ranges and a reverse DNS pattern13, and you verify them the same way. In August 2025 Cloudflare reported that it had seen Perplexity use undeclared crawlers with a generic browser user agent after its declared bots were blocked16. That is Cloudflare's finding, not something I have tested, but it shows the limit of any analysis that trusts the user agent: a bot that does not say what it is simply looks like a visitor.

Example: here are the main bots in Ashby Outdoor's May log by number of requests, after verification where the operator publishes ranges.

Ashby Outdoor, May 2025, requests by crawler. Verified Googlebot 452,000. Bingbot 74,000. GPTBot 61,000. ClaudeBot 38,000. Fake Googlebot 34,000. CCBot 12,000. PerplexityBot 4,200. OAI SearchBot 3,100. Tap or click to open full screen and move around

Two things stand out. AI training crawlers made about 111,000 requests between them, a quarter of Googlebot's volume, and most of those went into the same filter combinations. And ChatGPT-User made 900 requests and Perplexity-User 300, almost all to guides and product pages: those are people asking assistants about garden furniture and the assistants reading Tom's pages. Whether to allow or block any of these crawlers is a business decision with trade offs of its own. The log's job is to show Tom what is happening, so the decision is made on facts.

The tools, from free to paid

You do not need expensive software for a first look. Three approaches cover almost every case.

A dedicated log analyser. Screaming Frog's SEO Log File Analyser is a desktop tool built for exactly this job. You load log files, it groups requests by bot, URL, status code and directory, and it can import a crawl or a URL list so you can see which pages are crawled and which are not. The free version handles 1,000 log events in a single project, enough to learn the tool but not for a month of a real shop. The paid licence lifts those limits and adds automatic verification of search engine bots17. Other crawling tools and log platforms offer similar analysis.

The command line. On a Mac or Linux machine, grep, awk, sort and uniq answer most questions in seconds, even on hundreds of megabytes. The field numbers below assume the combined log format shown earlier.

# Keep only requests whose user agent claims to be Googlebot (verify these next!)
gunzip -c access.log*.gz | grep 'Googlebot' > googlebot-claimed.log

# The distinct IP addresses that claim to be Googlebot, to feed into verify_googlebot.py
awk '{print $1}' googlebot-claimed.log | sort -u > claimed-ips.txt

# Keep the verified addresses, then only the lines that come from them
python3 verify_googlebot.py < claimed-ips.txt | awk '$2 == "verified" {print $1}' > verified-ips.txt
awk 'NR == FNR {ok[$1] = 1; next} ($1 in ok)' verified-ips.txt googlebot-claimed.log > googlebot-verified.log

# Status codes served, most frequent first ($9 is the status field)
awk '{print $9}' googlebot-verified.log | sort | uniq -c | sort -rn

# Requests by first path segment ($7 is the URL); parameters are cut off first
awk '{print $7}' googlebot-verified.log | cut -d'?' -f1 | cut -d'/' -f2 | sort | uniq -c | sort -rn

# How many requests carried URL parameters at all
grep -c '?' googlebot-verified.log

A small script or a database. Once the questions get more involved, such as time to first crawl, a comparison with the sitemap, or months side by side, it pays to load the verified lines into a database or a data warehouse. The article on setting up Google BigQuery for a Rails and Solidus shop shows that kind of setup for shop data, and log lines fit into the same pattern.

Example: Tom's developer does the whole May analysis with the command line and the short Python script above. The first pass, extracting Googlebot lines and verifying the addresses, takes about 20 minutes. Grouping by section and status takes another hour, mostly spent writing the rules that put each URL in the right section. The list comparison for orphans runs in a spreadsheet. No new software, no licence, and the commands are saved so June's analysis takes a fraction of the time.

The privacy side: logs are personal data

Every line in an access log contains an IP address, and an IP address can identify a person. This is not a technicality. The UK General Data Protection Regulation (UK GDPR) names online identifiers in its definition of personal data, and the Information Commissioner's Office (ICO) explains that a person can be identified by "an online identifier"18. The recitals that accompany the GDPR list internet protocol addresses among such identifiers19. In 2016 the Court of Justice of the European Union ruled in the Breyer case that even a changing (dynamic) IP address stored by a website operator is personal data where the operator has legal means to identify the person with the internet provider's help, and that keeping a website running and protecting it against attacks can be a legitimate interest for storing such data20.

What that means for your logs, in practice:

  • You need a lawful basis. For security and keeping the site running, that is usually legitimate interests under Article 6(1)(f) of the UK GDPR21, and the recitals name network and information security as a legitimate interest19. Write the reasoning down.
  • Keep them only as long as you need them. The storage limitation principle in Article 5(1)(e)21 means you decide a retention period and can justify it. The ICO puts it plainly: "You must not keep personal data for longer than you need it."22 Your server's log rotation is where that period becomes real.
  • Bots are not people, visitors are. For SEO analysis you only need the lines from crawlers. Extract those, and shorten or remove the IP addresses of everything else before the file leaves the server.
  • Limit who gets the files. If an outside contractor analyses your logs, they process personal data on your behalf, which needs a written agreement. The article on vetting data processors explains what goes into one.
  • Say it in your privacy notice. Server logs for security and operation belong in the list of what you collect.

This section is general information about the law as it stood in August 2025, not legal advice. For your own setup, ask someone qualified.

Example: Tom writes a short note for his records: access logs are kept for 30 days for security and the operation of the shop, under legitimate interests. Then they are deleted by the server's rotation. For SEO, his developer extracts only lines from verified crawlers. In the extract, every human visitor's address is gone, because only crawler lines are kept in the first place. The developer works under a written processing agreement, and the shop's privacy notice already lists server logs. None of this slows the analysis down, and the 30 day limit is exactly the window the analysis needs.

When log analysis is worth it, and when it is not

Logs are a powerful tool, and like every powerful tool they cost time. Here is an honest guide to when that time pays back.

Worth it:

  • Large sites and shops with filters. If you have tens of thousands of URLs, or a few thousand pages that filters and parameters multiply into far more, logs show where crawling goes, and nothing else does. Google's large site guide names these sites, and the "Discovered, currently not indexed" pile as the warning sign8.
  • Relaunches and migrations. Before launch, logs show which old URLs Google still requests, so none are forgotten in the redirect map. After launch, they prove the redirects work.
  • Indexing puzzles. When important pages stay out of the index and Search Console does not explain why, the log tells you whether Google is coming at all.
  • Bot questions. If you want to know what AI crawlers and other bots do on your site before you decide anything about them, the log is the only source.

Not worth it yet:

  • A small site that gets crawled fine. A business site with 40 pages, all indexed, new pages crawled within a day or two: the Crawl Stats report and the Page indexing report already tell you everything. Google's own guide says such sites do not need to think about crawl budget8.
  • No access to raw logs. If your platform gives you none, work with Search Console's reports until you change hosting for other reasons.
  • No one to act on the findings. An analysis that shows 79% crawl waste is only worth something if someone can then change the filters, the links and the redirects.
Tap or click to open full screen and move around

Example: Ashby Outdoor goes down the left side of the flow without a pause: 210,000 URLs crawled in a month against 2,600 useful ones, 52,000 pages stuck in "Discovered, currently not indexed", and raw logs available. Now picture a different, invented business: a joinery with a 40 page website, every page indexed and new pages crawled within two days. It answers no at both of the first two questions. For that site, ten minutes in the Crawl Stats report once a quarter is enough, and a log analysis would be time better spent elsewhere.

The whole analysis, step by step

Here is the full method in one place, in the order that works.

Tap or click to open full screen and move around

Example: here is Ashby Outdoor's May analysis as one findings table, in the order Tom and his developer will fix things. The order follows a simple rule: the biggest waste with the least effort first, and anything that makes Google slow down for the whole site before anything cosmetic.

OrderFinding from the logSizeFixWhere it is explained
1Filter and parameter URLs take most of Googlebot's page requests269,000 requests, 69.3%Decide which filter combinations deserve a page, make the rest uncrawlableFaceted navigation
2Server errors on slow filter pages in the evening4,500 requestsShrinks with fix 1, then speed up the remaining queriesPage speed
3Wishlist links send Googlebot to the login page6,000 requestsTurn the wishlist link into a button that is not a crawlable linkThis chapter
4Redirect chains from an old URL change2,100 URLsPoint every old URL straight at its final targetRelaunching
5Products only reachable through JavaScript filter links140 URLsMake product links plain links in the HTMLJavaScript SEO
6Orphan products and guides, deep pagination480 URLsLink them from categories and guides, check the sitemapSitemaps
7Internal links to deleted products210 linksUpdate the guides, redirect where a close replacement existsCanonicals and duplicates
8Scripts and stylesheets refetched after every deploy11 deploysVersion only files that changedThis chapter
9Fake Googlebots34,000 requests from 41 addressesRate limit or block at the server after verificationThis chapter

Then the same analysis runs again in June. The numbers to watch are the three from this chapter: crawl waste, which should fall from 79.1%, coverage of useful URLs, which should rise from 76.2%, and the median time to first crawl for new products, which should fall from 9 days. If they move, the fixes work. If they do not, the log will show why.

My view

Server logs are the most honest data source in SEO. They do not summarise, sample or estimate. They record what happened. That is their strength, and it is also why I do not recommend them to everyone. For most small websites, the Crawl Stats and Page indexing reports in Search Console answer every useful question, and a log analysis would be expensive curiosity.

For a shop with filters, it is different. A shop's catalogue is small compared with the number of URLs its filters can generate, and that gap is exactly what logs make visible and what no other report measures precisely. A log analysis turns "Google doesn't index our products" into a number like 79% and a list of causes, and that is a far better starting point for any decision. If a shop is being built or relaunched, for example on Solidus, that is the best moment to settle the log format, with response times included, and the retention period, before the first problem rather than after it.

Two things I would insist on. First, verify every bot before you count it. An analysis of unverified "Googlebot" lines measures, in part, the scrapers who copy your prices. Second, treat logs as personal data from day one. A short retention period, crawler lines only for SEO, and a sentence in the privacy notice cost almost nothing and keep the analysis clean.

Conclusion

Search Console shows you the verdict. Your logs show you the evidence: every request, from every crawler, with every answer your server gave. For a site with many URLs, filters, a relaunch or an indexing puzzle, a month of verified logs answers the questions no report can: where Googlebot's attention goes, which status codes it meets, which pages it never visits, how long new pages wait, and which other bots read your site.

For Tom, one month of logs turned a vague worry into numbers: 79.1% of Googlebot's page requests went to filters and old URLs, 620 useful pages got no visit at all, and new products waited a median of 9 days. Each of those numbers now has a fix and a chapter, and next month's log will show whether the fixes worked. The last chapter of this series, the technical SEO audit checklist, puts log analysis in its place among all the other checks.

If you want to know where Google really spends its time on your site, or you want a second pair of eyes on your logs before a relaunch, book the free workshop. We look at it together, the first two weeks of work are on me, and my prices are public before you ever ask.

Want to know where Google really spends its time on your site, or need a second pair of eyes on your logs before a relaunch? Book the free workshop, we look at it together, and the first two weeks of work are on me.

Sources

  1. 1.

    Martin Splitt and Gary Illyes, Crawling December: The how and why of Googlebot crawling, Google Search Central Blog, 3 December 2024, https://developers.google.com/search/blog/2024/12/crawling-december-resources

  2. 2.

    The Apache Software Foundation, Log Files, Apache HTTP Server Version 2.4 Documentation, https://httpd.apache.org/docs/2.4/logs.html

  3. 3.

    nginx, Module ngx_http_log_module, nginx documentation, https://nginx.org/en/docs/http/ngx_http_log_module.html

  4. 4.

    Google Search Central, Googlebot, Google Search Central documentation, https://developers.google.com/search/docs/crawling-indexing/googlebot

  5. 5.

    Google Search Central, Verifying Googlebot and other Google crawlers, Google Search Central documentation, https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot

  6. 6.

    Vincent Wehren, How to verify that Bingbot is Bingbot, Bing Webmaster Blog, 31 August 2012, https://blogs.bing.com/webmaster/2012/08/31/how-to-verify-that-bingbot-is-bingbot

  7. 7.

    Google, Crawl Stats report, Search Console Help, https://support.google.com/webmasters/answer/9679690

  8. 8.

    Google Search Central, Large site owner's guide to managing your crawl budget, Google Search Central documentation, https://developers.google.com/search/docs/crawling-indexing/large-site-managing-crawl-budget

  9. 9.

    Gary Illyes, Crawling December: Faceted navigation, Google Search Central Blog, 17 December 2024, https://developers.google.com/search/blog/2024/12/crawling-december-faceted-nav

  10. 10.

    Google Search Central, How HTTP status codes, and network and DNS errors affect Google Search, Google Search Central documentation, https://developers.google.com/search/docs/crawling-indexing/http-network-errors

  11. 11.

    OpenAI, Overview of OpenAI crawlers, OpenAI Platform documentation, https://platform.openai.com/docs/bots

  12. 12.

    Perplexity, Perplexity crawlers, Perplexity documentation, https://docs.perplexity.ai/guides/bots

  13. 13.

    Common Crawl, CCBot, Common Crawl, https://commoncrawl.org/ccbot

  14. 14.

    Cloudflare, Declare your AIndependence: block AI bots, scrapers and crawlers with a single click, The Cloudflare Blog, 3 July 2024, https://blog.cloudflare.com/declaring-your-aindependence-block-ai-bots-scrapers-and-crawlers-with-a-single-click/

  15. 15.

    Google Search Central, Google's common crawlers (Google-Extended), Google Search Central documentation, https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers

  16. 16.

    Gabriel Corral, Vaibhav Singhal, Brian Mitchell and Reid Tatoris, Perplexity is using stealth, undeclared crawlers to evade website no crawl directives, The Cloudflare Blog, 4 August 2025, https://blog.cloudflare.com/perplexity-is-using-stealth-undeclared-crawlers-to-evade-website-no-crawl-directives/

  17. 17.

    Screaming Frog, SEO Log File Analyser, Screaming Frog, https://www.screamingfrog.co.uk/log-file-analyser/

  18. 18.
  19. 19.

    Regulation (EU) 2016/679 (General Data Protection Regulation), Recitals 30 and 49, EUR Lex, https://eur-lex.europa.eu/eli/reg/2016/679/oj/eng

  20. 20.

    Court of Justice of the European Union, Judgment in Case C-582/14 Patrick Breyer v Bundesrepublik Deutschland, Press Release No 112/16, 19 October 2016, https://curia.europa.eu/jcms/upload/docs/application/pdf/2016-10/cp160112en.pdf

  21. 21.

    UK General Data Protection Regulation, Articles 5 and 6, legislation.gov.uk, https://www.legislation.gov.uk/eur/2016/679/article/5

  22. 22.
Shelter

I’m running the London Marathon for Shelter. Sunday 25 April 2027

My personal fundraiser. Shelter, the National Campaign for Homeless People Limited, registered charity 263710 (England and Wales) and SC002327 (Scotland), registered with the Fundraising Regulator.