SEO

Log File Analysis

Also called server log analysis, access log analysis

Reading raw server logs to see which URLs crawlers actually requested, how often, and what the server answered.

Quick facts: Log File Analysis

Category
SEO
Also called
server log analysis, access log analysis
Level
Advanced
Affects
Crawl budget, indexing, migration checks, error discovery
Where to see it
Server access logs, Screaming Frog Log File Analyser, CDN logs, Search Console Crawl stats
In this article4
  1. How log file analysis works
  2. Why log file analysis matters
  3. Common mistakes with log file analysis
  4. How to act on it

How log file analysis works

Every time anything asks your server for a page — a person, Googlebot, a scraper — the server writes a line about it. That line records the address requested, the moment it happened, the status code the server returned, the user agent that asked and, usually, how large the response was. Collect those lines over a period and you have an exact record of what happened, not a sample and not an estimate.

Analysis means filtering that record down to the requests you care about, normally the search engine crawlers, and then grouping them. Which URLs are being fetched most. Which sections are being ignored. What status codes the crawler is meeting. How the pattern changes after you publish, redirect or restructure something.

Getting the files is the first practical hurdle. On managed and cloud hosting the logs are usually available through the control panel or the CDN. On cheaper shared hosting they are often rotated away quickly, so ask the host to retain them, or turn archiving on, before the day you need them.

Why log file analysis matters

It is the only source that shows crawler behaviour directly. Search Console reports are summarised and delayed, a crawling tool shows what a crawler could do rather than what one did, and analytics never sees a bot at all. When those tools disagree, the logs settle it.

That makes it the right tool for a small set of expensive questions. Are new products being fetched at all, or is crawl budget going to filter URLs and old redirects. Did the migration actually get crawled, and did the crawler meet the redirects you set or the errors you missed. Is a section that lost rankings still being visited.

Common mistakes with log file analysis

Trusting the user agent is the big one. Anything can call itself Googlebot, and plenty of scrapers do. Verify by checking the requesting address resolves back to the crawler’s own domain before you conclude anything about search behaviour.

Working from too short a window is the next. A few hours of logs describes an afternoon, not a crawl pattern, and rarely covers the deeper pages that get visited infrequently. The third mistake is reading a big number as good news: heavy crawling of one folder is only useful if that folder is worth crawling, and often it turns out to be a trap or a stack of parameters.

How to act on it

Start with a question rather than the data, because logs are large and it is easy to browse them for an afternoon and learn nothing. Pick something specific — did the redirects hold, are these product pages being fetched — pull the matching period, and answer it.

Then compare the crawled list against the list of pages you actually want ranked. The gap between those two lists is your work: pages never fetched need links or a place in the sitemap, and heavily fetched pages that earn nothing need to stop being generated. This is the deepest part of a technical SEO audit and the one that pays off most on large sites.

Do and do not

Do

  • Arrange log retention with your host before you need it
  • Verify a crawler by address, never by user agent
  • Start from one question and pull the matching period

Do not

  • Draw conclusions from a few hours of data
  • Read heavy crawling of a folder as good news
  • Replace Search Console with logs on a small site

Questions people ask about this

Do I need log files if I already have Search Console?

For a small site, usually not. Search Console's crawl stats answer most questions and cost nothing to read. Logs earn their keep when a site is large, when a migration has to be verified line by line, or when the reports contradict each other, because the logs are the raw record and everything else is a summary of it.

How do I get my server log files?

Ask your host or your developer. Managed hosting and cloud platforms usually expose access logs in the control panel, and a CDN keeps its own set. On shared hosting they are often deleted after a short retention period, so request longer retention before you need the data rather than after the event you wanted to investigate.

How can I tell real Googlebot from a fake one?

Do not rely on the user agent string, because anything can claim to be Googlebot. Verify the requesting address instead: a reverse lookup should resolve to Google's own crawler domain, and a forward lookup on that name should return the same address. Unverified requests still consume your server, but they say nothing about search.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.