TL;DR

  • Every request to your site, from a person or a bot, is written to an access log. It's the only place you can see what crawlers actually requested and what your server sent back.
  • You don't need a paid tool. A downloaded log file and a few terminal commands answer most questions in under an hour.
  • Check three things first: are bots getting errors, where is Googlebot spending its visits, and which pages AI assistants fetch when someone asks them a question.
  • Anyone can call their bot "Googlebot". Google, OpenAI, Anthropic and Perplexity all publish ways to check a visit is real. Verify before you act on anything.
  • AI bots aren't one thing. Some collect training data, some build a search index, and some fetch a page because a person asked a question right then. Treat them differently.

Why bother with logs at all?

Search Console tells you what Google decided about your pages. Analytics tells you what people did. Neither shows you the moment a crawler asked for a page and what it got back.

That gap is where some of the most expensive problems hide. A security setting that serves Googlebot a challenge page instead of your content. A filter system that eats most of Google's visits while your service pages wait. An AI search bot that gets a 403 on every request, so your site never appears in ChatGPT answers. None of these show up clearly anywhere else.

Logs are also the only place you can see AI crawlers at all. Google gives you a Crawl Stats report (in Search Console, under Settings) for Googlebot. ChatGPT, Claude and Perplexity give you nothing like it. If you want to know whether they visit, what they read and whether it works, the log is the record.

Step 1: Get the log file

Where the file lives depends on your hosting:

  • Shared hosting with a control panel: look for "Access logs" or "Raw access logs". Download the latest file, plus older archived ones if they're offered.
  • Your own server (VPS or cloud): the usual locations are /var/log/nginx/access.log for Nginx and /var/log/apache2/access.log or /var/log/httpd/access_log for Apache. Older files are often rotated and compressed as .gz.
  • Behind a CDN such as Cloudflare: your server only logs requests the CDN passed through. Blocked or cached requests may never reach it, so check the CDN's own logs or security events too.
  • Managed platforms (Shopify, Wix, most website builders): you usually can't get raw logs. Use Search Console's Crawl Stats for Googlebot and accept that AI bot data isn't available to you.

Two practical points. Some hosts keep only a short window of logs, so download them regularly if you want history. And logs contain your visitors' IP addresses, so treat them as personal data: don't email the raw file around, and filter it down to bot lines before sharing it with anyone outside the company.

Step 2: Learn to read one line

Most servers use the same "combined" format. Here's one example line from a Googlebot visit, using the IP address Google uses in its own documentation:

66.249.66.1 - - [27/Oct/2026:10:14:03 +0530] "GET /services/seo HTTP/1.1" 200 18342 "-" "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)"

Read it left to right:

  • 66.249.66.1: the IP address that made the request. You'll use this to check whether the bot is real.
  • [27/Oct/2026:10:14:03 +0530]: when it happened.
  • GET /services/seo: the page it asked for.
  • 200: what your server answered. 200 means the page was served. 301 and 302 are redirects, 404 is not found, 403 is forbidden, 429 is "too many requests" and 5xx codes are server errors.
  • 18342: the size of the response in bytes. A tiny number on a page that should be large is a warning sign: the bot may have received an error page or an empty shell.
  • The last quoted part: the user agent, where the visitor says who it is. This is where "Googlebot" or "GPTBot" appears.

Step 3: Know which bots you're looking for

These are the names worth searching for. The purpose matters as much as the name, because blocking or welcoming each one has a different effect.

Google

  • Googlebot: crawls for Google Search. Because Google indexes the mobile version of pages, most visits on most sites come from the smartphone version, whose user agent includes "Android" and "Mobile". Pages that appear in AI Overviews and AI Mode come from the same crawl.
  • Google-Extended: you won't find this in your logs. Google's own list of its crawlers says it "doesn't have a separate HTTP request user agent string". It's a robots.txt setting that controls whether content Google already crawled can be used for Gemini. The fetching itself is done by Google's normal crawlers.

OpenAI

OpenAI's crawler documentation lists separate bots with separate jobs:

  • OAI-SearchBot: builds the index for ChatGPT search. OpenAI says sites that opt out of it "will not be shown in ChatGPT search answers", apart from navigational links.
  • GPTBot: collects content that may be used to train OpenAI's models. Blocking it is a training opt-out. It doesn't remove you from ChatGPT search.
  • ChatGPT-User: visits a page because a user asked ChatGPT something and it went to look. OpenAI says it isn't used for automatic crawling and that robots.txt rules "may not apply", because a person started the request.
  • OAI-AdsBot: only visits pages submitted as ChatGPT ad landing pages. If you run ChatGPT ads, expect to see it.

Anthropic

Anthropic's crawler page describes the same three-way split:

  • ClaudeBot: collects content for model training.
  • Claude-SearchBot: crawls to improve Claude's search answers.
  • Claude-User: fetches a page when a Claude user asks a question that needs it.

Anthropic says all three respect robots.txt, and it also supports the Crawl-delay setting. It advises against blocking by IP address, because that can stop its bots reading your robots.txt at all.

Perplexity

  • PerplexityBot: crawls to show and link sites in Perplexity's answers. Perplexity says it isn't used to train AI models.
  • Perplexity-User: visits a page when a user's question calls for it, and Perplexity says it "generally ignores robots.txt rules" because a person triggered it.

The pattern across all of them: training bots, search bots and user-triggered fetchers. That split is what makes logs useful, as Step 5 shows.

Step 4: Count what's there

You can do this in a terminal on Mac or Linux. On Windows, PowerShell's Select-String does the same job as grep, or you can use a free version of a log analyser tool if you'd rather avoid commands. Put the log file in a folder, open a terminal there, and start with a count per bot:

for bot in Googlebot bingbot OAI-SearchBot GPTBot ChatGPT-User ClaudeBot Claude-SearchBot Claude-User PerplexityBot Perplexity-User; do
  echo "$bot: $(grep -c "$bot" access.log)"
done

If your logs are compressed (access.log.1.gz and so on), swap grep for zgrep. Note that "Googlebot" also matches Googlebot-Image and similar variants, which is fine for a first look.

Next, see what each bot gets back. This shows the status codes served to OAI-SearchBot, and you can swap in any bot name:

grep "OAI-SearchBot" access.log | awk '{print $9}' | sort | uniq -c | sort -rn

Then see which pages a bot asks for most:

grep "Googlebot" access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -30

Those three commands answer most of what follows. The numbers 9 and 7 refer to the status code and the URL in the standard log format. If your output looks wrong, your host may use a different layout, so compare against one raw line.

Step 5: Look for the problems that matter

Bots getting errors you didn't intend

This is the first thing to check, because it can cancel out everything else you do. If Googlebot, OAI-SearchBot or PerplexityBot is getting a lot of 403, 429 or 503 responses, something between the bot and your content is turning it away.

The usual cause isn't robots.txt. It's a firewall, a bot-protection feature, an "under attack" mode on the host or CDN, or rate limiting that treats a busy crawler as an attacker. These often serve a challenge page with a 403 or 503. A person clicks through it. A crawler can't.

Compare with your robots.txt. If you allow OAI-SearchBot there but your logs show it getting 403s, your security settings are overruling your robots.txt, and you're out of ChatGPT search without having decided to be.

Googlebot spending its visits on the wrong pages

Look at the list of most-crawled URLs. On a healthy site it's mostly pages that matter. On a site with a problem, it's full of URLs with ?sort=, ?filter=, session IDs, calendar pages or endless pagination.

Google crawls what it finds, and every link to a parameter URL is an invitation. If those URLs dominate the log, your important pages get crawled less often, and updates to them take longer to show in search. The fix is usually internal linking and canonicals, the same work we describe for junk URLs in Crawled – Currently Not Indexed.

Also check the other direction. Search the log for your key service, product or category pages. If one that matters hasn't been requested by Googlebot in weeks, it's probably poorly linked from the rest of your site.

404s and redirect chains

Filter for 404s per bot and look at which URLs are failing. Old URLs from a past redesign, broken internal links and outdated sitemap entries are the usual sources. AI crawlers tend to hit more of these than Googlebot, as the data in why your site might rank on Google and be invisible to ChatGPT shows, so a clean redirect map pays off twice.

Suspiciously small responses

Sort bot requests by response size. If an important page normally weighs 80 KB but some bot requests got 2 KB, the bot received something else: an error page, a challenge page, or a page whose content only appears after JavaScript runs. That last case matters most for AI crawlers, most of which don't run JavaScript.

Step 6: Check the visits are real

Fake Googlebots are common. Scrapers set their user agent to Googlebot because many sites let Googlebot through. Before you change anything because of "Googlebot" traffic, check a sample of the IP addresses.

Google's verification guide gives a two-step DNS check. Look up the IP's hostname, confirm it ends in googlebot.com, google.com or googleusercontent.com, then look up that hostname and confirm it points back to the same IP:

host 66.249.66.1
# crawl-66-249-66-1.googlebot.com

host crawl-66-249-66-1.googlebot.com
# crawl-66-249-66-1.googlebot.com has address 66.249.66.1

To check the 20 most frequent Googlebot IPs in one go:

for ip in $(grep "Googlebot" access.log | awk '{print $1}' | sort | uniq -c | sort -rn | head -20 | awk '{print $2}'); do
  host "$ip"
done

Any IP whose hostname isn't a Google domain, or doesn't resolve back, isn't Google. Google also publishes its crawler IP ranges as JSON files linked from the same guide, which is easier if you're checking thousands of addresses.

AI companies publish IP lists rather than DNS names. Match the IPs in your logs against these:

  • OpenAI: openai.com/searchbot.json, openai.com/gptbot.json and openai.com/chatgpt-user.json
  • Anthropic: claude.com/crawling/bots.json
  • Perplexity: perplexity.com/perplexitybot.json and perplexity.com/perplexity-user.json

Requests claiming to be one of these bots from IPs outside the lists are impostors. You can block those without affecting the real crawler.

Step 7: Read the AI bot traffic for what it tells you

This is the part most guides skip, and it's the most useful for anyone working on AI visibility.

Training bots (GPTBot, ClaudeBot) tell you your content may be collected for future models. Volume here doesn't mean visibility in answers.

Search bots (OAI-SearchBot, Claude-SearchBot, PerplexityBot) tell you whether you're in the pool these assistants search. If they never visit, or every visit fails, you can't be cited, however good the page is.

User-triggered fetchers (ChatGPT-User, Claude-User, Perplexity-User) are the most interesting. Each one is a request made because someone asked an assistant a question and it decided your page could help answer it. The pages these fetchers request are the pages AI answers are using. That's the closest thing to a citation report you can get without paid tools.

List those pages with the same command as before:

grep -E "ChatGPT-User|Claude-User|Perplexity-User" access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -30

Then compare the list with your analytics. If ChatGPT-User fetches a page often but GA4 shows few visits from chatgpt.com to it, the answer is using your page without sending people through. We explain how to set up that side in how to track AI search traffic in GA4.

If the pages fetched aren't the ones you'd want quoted, that's a content brief. If no user-triggered fetches show up at all, it's a sign AI assistants aren't reaching for your site when your topics come up. What generative engine optimization is covers what moves that.

What to do with robots.txt once you know

Logs tell you what's happening. robots.txt is where you decide what should happen. The split between bot types makes the choice clearer:

  • If you want to be cited in AI answers but don't want your content used for training, allow the search bots and disallow the training bots: GPTBot, ClaudeBot and the Google-Extended token.
  • Blocking the user-triggered fetchers is unreliable, since OpenAI and Perplexity say robots.txt may not apply to them.
  • Fix firewall and bot-protection rules separately. robots.txt can't override a security setting that blocks a crawler before it reads anything.
  • Don't confuse a robots.txt block with removal from search. A blocked URL can still appear in Google if other sites link to it. Use noindex on pages you want out of the index, and leave them crawlable so Google can see it.

How often to check

Once a month is enough for most sites: a quick run of the counts and status codes to see if anything changed. Check within a day of any redesign, platform move, CDN change or security setting change, because those are when bots suddenly start getting errors. And check whenever rankings or AI mentions drop for no obvious reason. The log is often where the reason is.

If you'd rather have this done as part of a wider review, log analysis is one of the first things we look at in a technical SEO audit, and AI bot access is where our GEO work starts.