Log File Analysis for SEO: How to Read What Googlebot Does

Log file analysis for SEO, step by step: get your access logs, verify Googlebot, find wasted crawls and errors, then fix and re-check.
Log file analysis for SEO: a laptop showing verified Googlebot requests in an access log, with status codes 200, 301, 404 and 304 Log file analysis for SEO: a laptop showing verified Googlebot requests in an access log, with status codes 200, 301, 404 and 304

Log file analysis for SEO means reading your server’s access logs to see exactly which URLs search engine crawlers asked for, when they asked, and what your server sent back. Every request leaves a line in that log. Googlebot’s visits are in there too.

That makes logs the most direct evidence of crawling you can get. Search Console shows Google’s summary. Your logs show the raw record. This guide sits under our technical SEO fundamentals guide and walks you through the job step by step: getting the files, checking the bots are real, sorting the hits and fixing what you find.

Key takeaways

  • An access log records every request to your server, including each Googlebot visit, its status code and its size[6].
  • Google’s own crawling team calls raw access logs the best source for seeing what it crawls[1].
  • Never trust the user agent alone. Verify Googlebot with reverse and forward DNS, or Google’s published IP lists[2].
  • Look for crawl spent on redirects, errors, soft 404s and duplicate parameter URLs. Google says these waste crawling time[5].
  • Search Console’s Crawl Stats report is a useful summary, but Google says it may not count every request[4].

Log file analysis for SEO is the practice of checking server access logs for search engine crawler activity. You filter the log down to verified bot requests, then group them to see where crawling goes. It answers questions no other tool can answer with certainty. Which URLs did Googlebot actually request this month? Which ones did it never touch?

Most web servers write access logs in the “combined” format. Apache documents it like this[6]:

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined

nginx uses the same layout by default[7]. Here is what one Googlebot line could look like. The IP and URL below are example values, not a real request:

66.249.66.1 - - [24/Nov/2026:09:14:02 +0000] "GET /http-status-codes-seo/ HTTP/1.1" 200 48211 "-" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/W.X.Y.Z Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
Part of the lineExample valueWhat it tells you
Client IP (%h)66.249.66.1Who made the request. You verify Googlebot from this
Time (%t)24/Nov/2026:09:14:02 +0000When it happened, with the server’s time zone
Request (%r)GET /http-status-codes-seo/ HTTP/1.1Which URL was asked for, and how
Status (%>s)200What your server answered: 2xx, 3xx, 4xx or 5xx
Size (%b)48211Bytes sent in the response body
User agent…Googlebot/2.1…Who the client says it is. Easy to fake

Example line written for this guide. The user agent follows the Googlebot Smartphone format Google publishes[3], where “Chrome/W.X.Y.Z” stands for the current Chrome version.

Why bother, when Search Console exists? Because the log is complete for your server, covers every bot, and lets you see single URLs over any period you keep.

Expert quote

Raw access logs are “the best source to analyze what resources Google is crawling” — Martin Splitt and Gary Illyes, Google Search Central, 3 December 2024[1]

Log files or the Crawl Stats report: which do you need?

Use Search Console’s Crawl Stats report for a quick health check, and your logs when you need the full record. The report covers Googlebot smartphone, desktop, image, video and page resource loads, plus other Google agents[4]. But Google says some requests might not be counted, so totals can differ a little from your logs[4].

QuestionCrawl Stats reportYour access logs
Which bots?Google crawlers onlyEvery client: Google, Bing, AI crawlers, scrapers, people
Every request?No. Some may not be counted[4]Yes, for the server that wrote the log
Single URLs?Example URLs only, not a full list[4]Every URL, every hit
Time rangeRecent months, host status over 90 days[4]As long as you keep the files
EffortNone: open the reportDownload, filter, verify and group
Best forSpotting host problems and big shiftsFinding exactly where crawl is wasted

From our own site

On 26 November 2026 we opened the Crawl Stats report for aiseojournal.net. It covered roughly 28 August to 24 November 2026. Google made 2,920 crawl requests, with an average response time of 880 ms. 94% returned 200, 3% returned 304 and 2% returned 301. Only 39% of requests were for HTML. Page resource loads made up 35% of requests and image crawls 33%, more than smartphone (23%) and desktop (9%) page crawls combined. The report also says the host “had problems in the past”.

What it means: most of Google’s crawling here goes on files around our pages, not the pages themselves. The report can’t tell us which files. Our server logs can. Limitation: this is Google’s summary, which may not count every request[4].

How to analyse a log file for SEO in six steps

Here’s how to analyse a log file for SEO in six steps. The diagram shows the loop. The sections below explain each step, with commands you can copy.

Log file analysis for SEO: the six-step workflowSix numbered steps in a loop. Step 6 leads back to step 1 each month.aiseojournal.netLog file analysis for SEO: the six-step workflow1Get the logsDownload access logsfrom your host, serveror CDN. Note thedate range.2Filter to botsKeep lines whose useragent says Googlebotor another searchcrawler.3Verify the botsReverse DNS, thenforward DNS, or matchGoogle's IP lists.Drop the fakes.4Group the hitsCount requests bystatus code, URL typeand folder.5Find the wasteRedirects, errors,parameter URLs, soft404s and pages Googlenever visits.6Fix and re-checkFix one group, waittwo to four weeks,then compare the samedate range again.repeat each monthSources: Google Search Central (verifying Googlebot; crawl budget); Apache and nginx log docsaiseojournal.net
Read the workflow as text
  1. Get the logs. Download access logs from your host, server or CDN. Note the date range.
  2. Filter to bots. Keep lines whose user agent says Googlebot or another search crawler.
  3. Verify the bots. Reverse DNS, then forward DNS, or match Google's IP lists. Drop the fakes.
  4. Group the hits. Count requests by status code, URL type and folder.
  5. Find the waste. Redirects, errors, parameter URLs, soft 404s and pages Google never visits.
  6. Fix and re-check. Fix one group, wait two to four weeks, then compare the same date range again.
Built from the steps in this article.aiseojournal.net

Step 1: Get the logs

Ask your host where the raw access logs live, or look in your hosting control panel. On your own server, nginx writes to logs/access.log unless you change it[7]. Collect at least two to four weeks, so you see the normal pattern rather than one odd day.

Using a CDN? Then many requests may never reach your server, so you need the CDN’s logs too. Check what your plan includes before you start.

Step 2: Filter to search engine bots

Keep only lines whose user agent mentions a crawler you care about. For Google, that means the token Googlebot, which appears in both the smartphone and desktop strings[3]. A first filter on a Linux or Mac machine looks like this:

grep "Googlebot" access.log > googlebot.log
wc -l googlebot.log

That gives you a candidate list. Don’t report on it yet. Anyone can put “Googlebot” in a user agent.

Step 3: Verify the bots

Google gives two ways to check a request really came from it[2]. For a one-off check, run a reverse DNS lookup on the IP. Confirm the name ends in googlebot.com, google.com or googleusercontent.com. Then run a forward lookup on that name and check it returns the same IP.

# 1. Reverse lookup: replace the IP with one from your log
host 66.249.66.1
# 2. Forward lookup: use the host name the first command returned
host <name-from-step-1>
# Keep the IP only if the name ends in googlebot.com, google.com or googleusercontent.com
# and step 2 returns the same IP.

For thousands of IPs, match them against Google’s published JSON lists instead. The list for common crawlers such as Googlebot is common-crawlers.json. Special crawlers and user-triggered fetchers have their own files[2]. The ranges are in CIDR format, so use a tool that understands it.

Watch out

Fake Googlebots are common in raw logs, and they skew everything. If you skip verification, a scraper hammering your site looks like “Google crawling too much”. Verify first, then count.

Step 4: Group the hits

Now count the verified lines in a few simple ways: by status code, by folder, and by whether the URL has a query string. The status code is the ninth field in the combined format, so this one-liner counts them:

awk '{print $9}' googlebot-verified.log | sort | uniq -c | sort -rn

Here is a filled-in example of the summary you are aiming for. The figures are made up to show the method. They are not from a real site.

Group (example figures)RequestsShareWhat to check
200 OK8,40084%Are these the pages you want crawled?
301 / 302 redirects9009%Old internal links and redirect chains
404 / 4104504.5%Where Google finds the broken URLs
5xx server errors500.5%Times and folders where they cluster
304 not modified2002%Usually fine: the page has not changed since the last crawl
URLs with a ?1,30013%Filters, sorts and tracking tags

Reading the example: one request in seven goes to a parameter URL, and nearly one in ten hits a redirect. Those two groups are where to look first. Use the calculator below to turn your own counts into the same shares.

Step 5: Find the waste

Google lists the main ways crawling time gets wasted. Soft 404 pages keep being crawled. Long redirect chains hurt crawling. And many duplicate or unwanted URLs use up crawl time that could go on unique pages[5]. Your grouped log data shows which of these apply to you, URL by URL.

Also look for the opposite problem. Which important pages got no Googlebot visits at all in the period? Compare your sitemap or a crawl export with the list of URLs in the log.

Step 6: Fix and re-check

Fix one group at a time. Update internal links that point at redirects. Return a real 404 or 410 for pages that are gone. Keep crawlers out of endless filter combinations. Then wait two to four weeks and run the same analysis on the same length of period. If the share you fixed has dropped, the change worked.

Where does Googlebot's crawl go on your site?aiseojournal.net

Type the counts from your own verified Googlebot log lines for one period. The tool turns them into shares, so you can compare month with month.

Every line left after step 3 (verification).

Successful responses.

301, 302, 304, 307, 308 together.

404, 410 and other client errors.

500, 502, 503 and other server errors.

Parameter URLs such as filters, sorts or tracking tags.

Type every number to see the result.
This tool only does the sums on numbers you type. It does not read your log file, verify bots or say what share is good: Google publishes no target share. Nothing you type leaves this page. aiseojournal.net

Professional tip

Save your commands in a small script with the date range in the file name. Next month you run the same script, so the numbers compare like for like. Changing the method between months is the easiest way to fool yourself.

Try this AI prompt: summarise a Googlebot log export
I will paste a CSV export of verified Googlebot requests with these columns: timestamp, URL, status code, bytes, user agent.
1. Count requests by status code group (2xx, 3xx, 4xx, 5xx).
2. List the 20 most-requested URLs and the 20 URLs with the most 4xx or 5xx responses.
3. Count requests to URLs that contain a question mark, grouped by parameter name.
4. Flag URLs that redirect more than once in the data.
Use only the rows I give you. Do not estimate, extrapolate or invent figures. If something can't be worked out from the data, say so.
Here is the data:

What problems can log file analysis find?

Most findings fall into a handful of problems. This table maps what you see in the log to the usual fix. For the meaning of each status code, see our guide to HTTP status codes for SEO.

What you see in the logLikely problemWhat to do
Many Googlebot hits on URLs with ?sort=, ?filter= or tracking tagsDuplicate or unwanted URLs using crawl time[5]Stop linking to them, consolidate duplicates, and block truly useless combinations
The same URL answers 301, then the target answers 301 againRedirect chain[5]Point internal links and the first redirect straight at the final URL
200 responses on pages that say “not found” or are emptySoft 404s, which keep being crawled[5]Return a real 404 or 410, or add real content
Clusters of 5xx at certain timesServer overload or failing jobsCheck hosting resources and scheduled tasks for those times
Important pages with no Googlebot hits for weeksWeak internal links, or not in the sitemapLink to them from strong pages and list them in the sitemap
Heavy crawling of CSS, JavaScript and imagesPage resources being fetched oftenLet them be cached, and check rendering needs. See our JavaScript SEO guide

Log analysis also shows crawlers other than Google. AI crawlers announce themselves in the user agent too. If you want to control them, our guide to managing AI crawlers covers the robots.txt rules. And if Google crawls pages but doesn’t index them, see how to fix crawled – currently not indexed.

When the numbers look wrong: a triage order

Log analysis can go wrong in a few predictable ways. Work through these checks in order when the numbers look odd.

  1. No logs available. Some shared hosts keep only a few days, or none. Ask for longer retention, or use the Crawl Stats report until you can get them[4].
  2. Every IP is the same. A CDN or proxy is in front of your server, so %h shows the proxy’s address[6]. Use the CDN’s logs, or log the forwarded client IP.
  3. Your totals don’t match Search Console. That’s expected. Google says the report may not count every request[4]. Worry only about big, lasting gaps.
  4. Googlebot numbers look huge. Re-check verification. Unverified lines are the usual cause.
  5. Files too big to open. Don’t use a spreadsheet for raw logs. Filter with the command line first, or use a dedicated log analyser.

When should you stop? Most small sites don’t need deep log work. Google’s crawl budget guide is aimed at sites with over a million pages, or over 10,000 pages that change daily[5]. If your new pages get crawled the same day you publish them, a monthly check is plenty.

Which tool is best for log file analysis?

The best tool for log analysis depends on how big your logs are and how often you’ll do it. Here are the common options, with what each one can’t do.

ToolGood forWhat it can’t do
Command line (grep, awk, sort)Free, fast filtering and counting on any size of fileVerify bots for you, or draw charts
Screaming Frog SEO Log File AnalyserApache, W3C Extended (IIS, nginx) and Amazon ELB formats; bot verification. Free version: 1,000 log events and 1 project; paid licence £99 a year[8]Fetch logs from your server for you
Search Console Crawl StatsFree summary of Google crawling and host status[4]Show every request, or any bot other than Google’s
A spreadsheetSmall, already-filtered exportsOpen raw log files of any real size

Whatever you use, check the date range, the time zone and whether the tool verified the bots. Those three settings change the results more than the tool itself.

Professional tip

Before you buy anything, run the free commands in this guide on one week of logs. If the picture is clear, a spreadsheet of the summary may be all you need. Pay for a tool when you need to repeat the job every month on large files.

Frequently asked questions

Download your server’s access logs, filter them to search engine user agents, and verify the bots with reverse and forward DNS. Then count the requests by status code and URL type. Look for crawling wasted on redirects, errors and parameter URLs, fix one group, and compare again a few weeks later.

For one-off checks, the command line is free and handles large files. For regular work, a dedicated tool such as Screaming Frog’s Log File Analyser reads common log formats and verifies bots. Search Console’s Crawl Stats report is a free summary, but it shows only Google and may not count every request.

Usually not in depth. Google’s crawl budget guidance targets very large or fast-changing sites. If your new pages are crawled the same day you publish them, a light monthly check is enough.

Google says the Crawl Stats report may not count every request, so small differences are normal. Large gaps usually mean the logs include fake Googlebots, or a CDN served many requests that never reached your server.

Run your first log check this week

This week, pull seven days of access logs and run steps 2 to 4. That’s about an hour of work. You’ll have a status-code split for verified Googlebot traffic, which is your baseline. Add the numbers to the calculator above and note the date.

Then fix the biggest waste group you find and repeat next month with the same commands. For the full list of technical checks to run alongside it, use our SEO audit checklist. If slow responses show up in your logs, our guide to site speed and Core Web Vitals is the next read.

How we checked this: we opened every source below on 26 November 2026. We read the “People also ask” box and top results for “log file analysis for seo” on Google UK the same day. The aiseojournal.net figures come from our Search Console Crawl Stats report, viewed on 26 November 2026. We did not analyse raw server logs for this article.

Sources

Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use