Blog / Technical SEO /

Log files for SEO: what a small site can learn from them

Search Console tells you what Google decided about your pages. Server logs tell you what Google actually did: every request Googlebot made, to which URL, when, and what your server answered.

That gap matters more often than you’d think. A page “discovered but not indexed” might never have been crawled. A site that feels slow to update in Google might have Googlebot spending its visits on filter URLs and old redirects instead of new posts.

Log file analysis has a reputation as a job for huge sites with millions of URLs. Big sites do need it most. But I think a small site can learn a lot from one afternoon with its logs, and the answer is often more direct than anything an SEO tool tells you.

What a log file is

Every time anything requests a file from your server, the server writes a line. A typical line includes:

  • the IP address of the visitor
  • the date and time
  • the request (for example GET /blog/my-post/)
  • the status code the server returned (200, 301, 404, 500…)
  • the user agent, which says who claims to be asking (a browser, Googlebot, Bingbot, a scraper)

Filter those lines to Googlebot and you have a diary of Google’s visits.

Getting the logs

This is where small sites hit the first obstacle.

  • On most shared and managed WordPress hosting, raw access logs are available in the control panel (cPanel usually has a “Raw Access” section) or on request from support. Some hosts only keep a few days, so download them regularly if you plan to look.
  • On a VPS or your own server, they’re on the server, usually under /var/log/ for Apache or Nginx.
  • Behind Cloudflare, your server still logs requests that reach it, but cached requests may never get there. Keep that in mind when counting.
  • On Shopify, you don’t get server logs at all. Shopify runs the servers. For a Shopify store, Search Console’s crawl stats are what you have.

Checking it really is Googlebot

Plenty of scrapers pretend to be Googlebot in their user agent. Before drawing conclusions, verify the visits. Google documents how: do a reverse DNS lookup on the IP and check it resolves to googlebot.com or google.com, then a forward lookup to confirm. Google also publishes its crawler IP ranges, which makes bulk checking easier. Many log analysis tools do this for you.

Five things to look for

1. Which pages Googlebot visits most

Sort Googlebot’s requests by URL. On a healthy small site, I’d expect the homepage, key categories and recent content near the top. If the top of the list is tag archives, search result pages, filter parameters or a feed, Google is spending its time on pages you don’t care about.

2. Pages it never visits

Compare the list of URLs Googlebot requested with your sitemap. Important pages that never appear in the logs over a month are a strong hint that they’re poorly linked. That’s often the real story behind “discovered, currently not indexed”, and the fix is internal links, not resubmitting. (Fixing “discovered, currently not indexed” goes into that.)

3. Status codes Googlebot gets

Filter Googlebot’s requests by status code:

  • Lots of 301s mean Google keeps requesting old URLs. Update internal links to point straight at the final URL.
  • 404s on URLs you thought were gone are normal for a while. 404s on URLs that should exist are a problem.
  • 5xx errors mean your server failed Google. A few are noise; a pattern is worth chasing, especially around busy times.

The HTTP status codes every site owner should recognise has the plain-English version of each.

4. Parameter and duplicate URLs

Look for the same path requested with endless variations: ?orderby=price, ?filter_colour=blue, ?replytocom=. Each variation is a separate URL to Google. On WooCommerce and other shops, faceted filters are the usual culprit.

5. How quickly new content gets crawled

Publish a post, then check when Googlebot first requested it. If it’s within hours, your internal linking and sitemap are doing their job. If it’s a week, look at how new posts are linked from the homepage and categories.

Tools for the job

You don’t need anything expensive:

  • A spreadsheet works for a small site. Import the log, split it into columns, filter by user agent.
  • Dedicated log analysers (Screaming Frog has a separate Log File Analyser, and there are others) do the parsing, bot verification and charts for you.
  • Command-line tools like grep are quick if you’re comfortable with them: grep "Googlebot" access.log | grep " 404 " shows Googlebot’s 404s in one line.

When Search Console’s crawl stats are enough

Search Console has a Crawl stats report under Settings. It shows total crawl requests, average response time, and a breakdown by response code, file type and purpose (discovery versus refresh). It also gives sample URLs.

For many small sites, that’s enough, so I’d open it first. If it shows high response times, lots of non-200 responses or a strange file type taking most of the requests, then go to the raw logs to find out exactly which URLs are involved.

What not to worry about

On a site with a few hundred pages, Google will usually crawl everything that matters without trouble. You’re not trying to squeeze every last request out of a crawl budget. Crawl budget: does a small site need to care? explains why it rarely limits small sites. Logs are useful here as a diagnostic: they show broken links, slow responses and wasted URLs you didn’t know about.

Download a week of access logs from your host today, filter them to Googlebot, and sort by URL. Are the pages at the top of that list the ones you’d want Google spending its time on?