عWork with me

Log file analysis in practice

What server logs show that crawlers and reports do not, how to read them step by step, and what to fix once you can see what bots really request.

Ahmed Ali · 3 min read
Log file analysis in practice
1Which bots visitverified Googlebot and others2Which status codes they get200, 3xx, 404, 5xx3Which sections they crawlcompare with what matters4Which URLs are wastedparameters, redirects, errors5Which pages are missedlisted but never requested
Start with the bots and status codes, then move to sections and URLs.

A crawl tells you what a site contains. Search Console tells you what Google chose to report. Server logs tell you what bots actually requested, row by row. That makes them the most direct view of crawling, and the place to find problems nothing else shows. This article is part of the complete technical SEO guide.

What a log line contains

An access log has one line per request. The useful fields are the time, the requested URL, the status code returned, the response size or time, the referrer and the user agent (who asked). Add the IP address to verify who the visitor really was.

Get the logs

  • From the web server or hosting panel (access logs, usually a few weeks).
  • From the CDN or edge. Many CDNs keep logs or can stream them to storage, sometimes only on certain plans.
  • For a static or edge-hosted site, from the platform’s analytics or log export if it has one.

Ask for at least a few weeks, so one quiet or busy day does not mislead you.

Read them in this order

  1. Isolate the bots. Filter by user agent for Googlebot, Bingbot and the AI crawlers you care about, such as GPTBot, ClaudeBot and PerplexityBot. Then verify the ones that matter, because user agents can be faked.
  2. Look at status codes. What share of requests get 200, 3xx, 404 and 5xx? Many redirects and errors mean crawl effort is wasted. The redirect chains entry explains why they waste crawl effort.
  3. Group by section. Compare where bots spend requests with where your valuable pages are. If most requests go to filters, search pages or old URLs, the site is wasting crawl. The crawl budget entry explains the idea.
  4. List the URLs that waste crawl. Parameters, sort orders, session IDs, calendars and endless pagination show up quickly.
  5. Find the pages bots miss. Compare the sitemap with the requested URLs. Pages that are listed but rarely or never requested usually have weak internal links.
  6. Check the rhythm. How often are your important pages requested? New content that bots visit within days is healthy. Pages not visited for long stretches may be too deep or too weakly linked.

Verify Googlebot properly

Google’s guide to verifying Google crawlers separates three kinds:

  • Common crawlers, such as Googlebot, respect robots.txt for automatic crawls. Their reverse DNS names end in googlebot.com.
  • Special-case crawlers, such as AdsBot, serve specific products and may or may not respect robots.txt.
  • User-triggered fetchers run when a person starts a fetch, such as a site verification, and ignore robots.txt.

Two ways to verify a request:

  1. Reverse DNS. Look up the IP, check the name ends in googlebot.com, google.com or googleusercontent.com, then run a forward lookup on that name and confirm it returns the same IP.
  2. IP ranges. Match the IP against Google’s published lists, such as common-crawlers.json and special-crawlers.json.

Spammers can claim to be Google in the user agent, so verify before you trust a row.

What you can fix once you see it

What the logs show Likely fix
Heavy crawling of filter or parameter URLs Block or canonicalize them, reduce links to them
Many requests to redirecting URLs Update internal links, flatten chains
404s requested often Restore, redirect or stop linking to them
Important pages rarely requested Add internal links, shorten the path, add to the sitemap
Bots blocked or served errors Check robots.txt, firewall and rate limits
AI crawlers absent or blocked Decide on purpose whether they should reach your content

Tools

You do not need a specialist product to start. A spreadsheet or a few command-line filters can count requests by bot, status and folder. Dedicated log analyzers help on large files.

When to use it

Use logs when a site is large, when pages are not being indexed and the technical checks pass, after a migration, or when you want to see how AI crawlers behave on your pages. For most small sites, Search Console is enough.

This is exactly what my technical SEO audit support covers; contact me to talk it through.

FAQ

Do small sites need log analysis?

Usually not. For a small, well-linked site, Search Console crawl stats are enough. Logs pay off on large sites, on sites with crawl or indexing problems and when you need to see AI crawler behavior.

How do I know a request really came from Googlebot?

The user agent string can be faked. Google documents how to verify Googlebot with a reverse DNS lookup or its published IP ranges. Verify before drawing conclusions.

Do logs contain personal data?

Access logs usually contain IP addresses, which can be personal data. Keep them secure, share only the bot rows you need and follow your privacy policy.

Sources

Keep reading

Want this applied to your site?

Tell me about your site and I’ll suggest the next step.

Work with me Services
Book a free audit call

Work with me

Tell me about your site and goals. I usually reply within 24 hours.

Your message comes straight to me. I usually reply within 24 hours.

Esc

↑↓ move · Enter open · Esc close