Log File Analysis for SEO: See What Googlebot Actually Crawls

Log file analysis shows every request Googlebot makes to your site. Here's how to pull the logs, prove the bot is real and turn the data into crawl fixes worth real money.

Pixel-art server rack beside a magnifying glass, reading access logs to see what Googlebot requested.

Log file analysis means reading your server's access logs to see every request Googlebot makes: which URLs, how often and what status code came back. It's the only full record of how Google spends its crawl on your site. You pull 30 days of logs, verify the real Googlebot, group requests by URL pattern and fix where the crawl goes to waste.

Search Console tells you what Google thinks of your pages. Logs tell you what Google did. Those are different things, and the gap between them is where most crawl problems hide.

My crawl budget guide covers when crawl budget matters and how to fix waste. This post is the hands-on part: how to read a log line, how to prove a bot is really Google, and how to turn a million lines of text into a short list of fixes.

Key takeaways

  • Logs are the ground truth. They record every request, not a sample.
  • Verify before you count. Fake Googlebots are common, so check IPs with DNS or Google's IP lists.
  • Group by URL pattern. The question is never one URL. It's which templates eat the crawl.
  • Compare against your sitemap. Pages you care about that Google never visits are the real finding.
  • Automate it. A weekly script beats a one-off audit that nobody repeats.

What is log file analysis, and what does it show?

Every time a browser or bot asks your server for a page, the server writes one line to a file called an access log. Each line records who asked, when, for what and what the server sent back.

Most servers use some version of the combined log format. The Apache docs on the combined log format list the fields: the client IP, the time, the request line, the final status code, the size of the response, the referrer and the user agent. Nginx and most CDNs log the same fields with small changes.

Here's a made-up line, so you can see the shape.

203.0.113.7 - - [02/Sep/2026:09:14:02 +0000] "GET /shoes/trail?color=red&size=9 HTTP/1.1" 200 48211 "-" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

Read left to right: an IP, a time, a request for a filter URL, a 200 code, about 48 KB sent, no referrer, and a user agent that claims to be Googlebot. Multiply that by a few hundred thousand lines and you have a full map of the crawl.

What logs show that Search Console doesn't

Search Console's Crawl Stats report is a good summary. But it groups and samples. Logs give you every request, tied to an exact URL. That lets you answer questions the report can't:

  • Which URL patterns get the most Googlebot requests?
  • Which important pages haven't been crawled in 30 days?
  • How many requests hit redirects, 404s or server errors?
  • Did Google start crawling the new section after launch?
  • How much of the "Googlebot" traffic is fake?

The Google Search Console guide covers what the report does well. Use both. The report for trends, the logs for detail.

When is log file analysis worth doing?

Not every site needs it. Google's crawl budget guide for large sites says the advice is for sites with 1 million or more unique pages that change about once a week, or 10,000 or more pages that change daily. Google calls those rough estimates, not hard lines.

In my experience, logs pay off in four cases:

  1. Big catalogs. Stores and marketplaces with filters and sort options that spawn endless URLs.
  2. Programmatic pages. Thousands of template pages launched at once, which Google may crawl slowly.
  3. Migrations. Before and after logs show whether Google found the new URLs and stopped hitting the old ones.
  4. Indexing mysteries. Pages that won't get indexed, where you need to know if Google even visited.

If you run a 200-page marketing site and every page is indexed, skip this. Your time is better spent on content.

How do you verify that Googlebot is really Googlebot?

This is the step most guides rush past, and it changes the numbers a lot. Google's Googlebot overview warns that the Googlebot user agent is often spoofed by other crawlers. Scrapers and SEO tools pretend to be Google so sites don't block them.

So a user agent is a claim, not proof. Google's doc on verifying Googlebot and other Google crawlers gives two ways to check.

The manual way. Run a reverse DNS lookup on the IP from your log with the host command. Check that the host name ends in googlebot.com, google.com or googleusercontent.com. Then run a forward DNS lookup on that host name and confirm it returns the original IP.

host 203.0.113.7                      # expect a name ending in googlebot.com
host crawl-203-0-113-7.googlebot.com  # expect 203.0.113.7 back

The automatic way. Match the IP against Google's published IP range files, such as the common crawlers list. This is faster for big logs, because you check ranges in a script instead of doing one DNS lookup per line.

Do this once per unique IP, not once per line. A log with 300,000 Googlebot lines may only have a few thousand unique IPs.

How do you run a log file analysis, step by step?

Here's the process I use. It works with a spreadsheet for small logs and a short script for big ones.

Flow from pulling logs to filtering bots, verifying IPs, grouping by pattern, checking the sitemap and a ranked fix list.Flow from pulling logs to filtering bots, verifying IPs, grouping by pattern, checking the sitemap and a ranked fix list.
The verification step, in orange, is the one most audits skip, and it changes every number after it.
  1. Get 30 days of raw logs. Ask your developer or host. On a CDN, use its log export.
  2. Filter to search bots. Keep lines whose user agent contains Googlebot. Add Bingbot if you care about Bing.
  3. Verify the IPs. Drop every line from an IP that fails the DNS or IP range check.
  4. Group by URL pattern. Map each URL to a template: products, categories, filters, blog, search, other.
  5. Add the status codes. Count 200s, 3xx redirects, 404s and 5xx errors for each pattern.
  6. Compare with your sitemap. List sitemap URLs with zero verified Googlebot requests in 30 days.
  7. Write the fix list. Rank fixes by how much crawl they free up or how many key pages they help.

Step 4 is the one that turns noise into a decision. One URL tells you nothing. "Filter pages took half the crawl" tells you exactly what to do.

Step 6 is where the money is. Your XML sitemap lists the pages you want indexed. Logs show which of those Google ignored. The XML sitemap guide covers how to keep that list clean, so the comparison means something.

A quick first pass on a raw file looks like this. It's not verification, just a rough count of requests by top folder.

grep "Googlebot" access.log | awk '{print $7}' | cut -d'/' -f2 | sort | uniq -c | sort -rn | head -20

For anything bigger, load the log into a table. The Python for GTM engineers guide shows how to do that in a few lines. Then schedule it weekly so you see changes before they hurt.

What should you look for in the results?

Most findings fall into a few buckets. Here's what each one means and what to do.

What you see What it usually means What to do
Filter or parameter URLs take a big share Endless URL combos are eating the crawl Block them in robots.txt or stop linking them
Many requests to redirects Old URLs still linked inside the site Update internal links to the final URL
Many requests to 404 pages Dead pages still linked or in the sitemap Remove the links and clean the sitemap
5xx errors in Googlebot requests Server strain when the bot crawls Fix the server, since errors can slow the crawl
Key pages with zero requests Google doesn't find or value them Add internal links and check the sitemap
Desktop Googlebot outnumbers smartphone Unusual for most sites Check your mobile setup

That last row needs context. Google's Googlebot overview says the majority of crawl requests will be made using the mobile crawler, because Google mostly indexes the mobile version of a page. If your verified logs show the reverse, look into why.

For the filter row, use robots.txt for URLs you never want fetched. The robots.txt guide covers the syntax, and the free robots.txt generator builds a clean file. Test any rule on a few URLs before you ship it. A bad rule can block pages you need.

The same logs also show AI crawlers. The AI crawlers guide lists each bot's name and how to verify it.

Worked example: where one store's crawl went

Here's a worked example with assumed numbers. Plug in yours.

Bar chart of crawl share: filter URLs 52%, products 18%, categories 9%, blog and other 8%, redirects 7%, 404 pages 6%.Bar chart of crawl share: filter URLs 52%, products 18%, categories 9%, blog and other 8%, redirects 7%, 404 pages 6%.
Worked example with assumed numbers: half the verified crawl went to filter URLs that should never rank. Worked example from this guide.

Say a store pulls 30 days of logs. It finds 310,000 requests that claim to be Googlebot. After the IP check, 22,000 of them fail. That leaves 288,000 verified requests.

Grouped by URL pattern, the verified crawl splits like this:

  • 52% went to filter and parameter URLs.
  • 18% went to product pages.
  • 9% went to category pages.
  • 8% went to blog and other pages.
  • 7% went to redirects.
  • 6% went to 404 pages.

Now the sitemap check. The store lists 4,000 product pages in its sitemap. In 30 days, 1,100 of them got zero verified Googlebot requests. Those are real products that Google barely knows about.

The fix list writes itself. Block the filter patterns that should never rank. Point internal links at final URLs, not redirects. Remove dead pages from the sitemap. Then link the 1,100 ignored products from category pages. Run the same logs again in 30 days and compare.

What are the common log file analysis mistakes?

Counting fake Googlebots. Skip verification and your numbers are wrong from the start. In the example above, 22,000 requests were fake.

Looking at URLs, not patterns. A list of the top 100 URLs won't tell you what to change. Group by template first.

Using too short a window. One day of logs shows spikes, not habits. Use 30 days unless the site is huge.

Reading origin logs behind a CDN. You'll miss requests the CDN served from cache, and you may see the wrong IPs.

Doing it once. A one-time audit goes stale in a month. Schedule the script and track the same numbers each week.

Forgetting to check after a fix. A robots.txt change can take time to show up. Pull fresh logs and confirm the crawl moved where you wanted.

What should you do this week?

Logs fit inside a bigger check. The technical SEO audit puts them next to indexing, speed and site structure. If you're about to launch thousands of programmatic SEO pages, set up log tracking before launch, so you can watch Google find them. Every request you free up is crawl budget Google can spend on pages that earn money. If you'd rather have it built for you, my SEO and AEO service sets up the weekly log report as part of the work.

My take: logs are the cheapest truth in SEO

Most SEO data is a guess about what Google might do. Logs are a record of what it did. They're free, you already have them, and almost nobody reads them.

You don't need a fancy tool. You need 30 days of lines, a verification step and the discipline to group by template. That alone will show you where the crawl goes and which of your best pages Google barely sees.

My advice: build the report once, as a script, and run it every week. A crawl problem caught in week one costs nothing. The same problem caught after a quarter of lost indexing costs real revenue.

FAQ

What is log file analysis in SEO?

It's reading your web server's access logs to see exactly which pages search engine bots request, how often and what status code they get back. Search Console shows a sample and a summary. Logs show every single request. That makes them the only full record of how Googlebot spends its time on your site.

Do small sites need log file analysis?

Usually not. If your site has a few hundred pages and they all get indexed, Search Console tells you enough. Logs start to pay off when you have thousands of URLs, lots of filters or parameters, frequent new pages, or a migration coming up. That's when wasted crawls slow down the pages that matter.

How do you know a request is really from Googlebot?

Don't trust the user agent, because anyone can fake it. Google says to run a reverse DNS lookup on the IP address, check that the host name ends in googlebot.com, google.com or googleusercontent.com, then run a forward lookup and confirm it returns the same IP. You can also match the IP against Google's published IP range files.

How many days of logs do you need?

Thirty days is a good start for most sites. It covers a full crawl cycle for most pages and smooths out daily spikes. For a migration, keep logs from before and after the switch so you can compare. Big sites with fast crawl rates can learn a lot from just one week.

What tools do you need for log file analysis?

For a small log, a spreadsheet and a few command line tools work fine. For bigger logs, use a log analysis tool, a crawler that imports logs, or a short Python script that loads the file into a table. The tool matters less than the steps: filter, verify, group by URL pattern and compare to your sitemap.

Can log files show AI crawlers too?

Yes. Every bot that requests a page leaves a line in the log, including AI crawlers. Filter the user agent field by each bot's name and verify the IPs against each company's published list. The same method that checks Googlebot works for them, with each company's own verification rules.

More like this

Startup? Let's talk.

20 minute fit call. You'll leave knowing the first thing we'd fix and roughly what it costs. If we're not the right fit, we'll tell you who is.