Measurement

How to find AI bots in your server logs, and what the visits tell you

Your server or CDN logs record every request, including those from AI crawlers. Filter by user agent for Googlebot, bingbot, OAI-SearchBot, ChatGPT-User, PerplexityBot, Perplexity-User, Claude-SearchBot, and Claude-User. Verify the IPs against each company’s published list. Then read three things: whether they come at all, which pages they fetch, and what status code they get. Visits from the user-triggered fetchers are the most interesting, because each one means a person asked an assistant something that needed your page.

Logs show which pages AI crawlers fetch. They do not show what the answer said. For that, a Citebase Snapshot records the answers and citations across four engines. This page covers the log side.

Where your logs are

Depending on how your site is hosted, request logs live in one of a few places:

  • Your CDN. If traffic goes through a CDN, its dashboard usually has a log or analytics view with user agents and status codes. Some plans keep only a few days.
  • Your host. Many hosts keep raw access logs you can download.
  • Your own server. On a server you run, the web server writes access logs, usually one line per request.
  • Your platform. Some site builders do not give access to raw logs. In that case the CDN in front of them, if you have one, is the only source.

Analytics tools like GA4 do not record crawler visits, because crawlers do not run the tracking script. Logs are the only place to see them.

The user agents to look for

AI search and answer user agents, with each company’s description.
User agent containsCompany and purposeVerify with
GooglebotGoogle Search, including AI Overviews and AI ModeReverse DNS, or common-crawlers.json
bingbotBing, which Copilot uses for web answersReverse and forward DNS lookup
OAI-SearchBotOpenAI, ChatGPT searchopenai.com/searchbot.json
ChatGPT-UserOpenAI, user-initiated actions in ChatGPTopenai.com/chatgpt-user.json
PerplexityBotPerplexity searchperplexity.com/perplexitybot.json
Perplexity-UserPerplexity, pages visited to answer a userperplexity.com/perplexity-user.json
Claude-SearchBotAnthropic, search qualityclaude.com/crawling/bots.json
Claude-UserAnthropic, pages fetched for user questionsclaude.com/crawling/bots.json

From OpenAI’s bots page, Perplexity’s crawler docs, Anthropic’s crawler article, and Google’s verification page. Training crawlers such as GPTBot and ClaudeBot will show up too. They are worth counting, but they tell you about training, not answers.

OpenAI also lists OAI-AdsBot, which it says only visits pages submitted as ads on ChatGPT. If you do not advertise there, you should not see it.

Verify before you count

Anyone can put “OAI-SearchBot” in a user agent string, and some scrapers do. Before you trust a count, match the IPs:

  • For OpenAI, Perplexity, and Anthropic, download the published JSON file and check whether each IP falls in one of its ranges.
  • For Google, Google’s page describes a reverse DNS lookup on the IP, checking that the name ends in googlebot.com, google.com, or googleusercontent.com, then a forward lookup to confirm it returns the same IP. Google also publishes IP range files.

If a large share of “OAI-SearchBot” requests come from IPs outside OpenAI’s list, those are impostors. Exclude them from your count, and consider blocking them.

What to read

  1. Whether they come at all

    If a verified search crawler has not visited in a month, something is stopping it: robots.txt, a firewall rule, or the engine has not found your site. The firewall guide covers the first two.

  2. Which pages they fetch

    List the top 20 URLs for each crawler. Search crawlers spread across your site. If your pricing or main service pages never appear, check that they are linked from your navigation and listed in your sitemap.

  3. What status they get

    200 means the crawler got the page. 403 or 429 means it was blocked or rate limited. 301 and 302 are redirects; a chain of them wastes crawls. 404s on pages you care about mean broken links somewhere. 5xx means your server failed.

  4. User-triggered fetches

    ChatGPT-User, Perplexity-User, and Claude-User fetch pages because a person asked something. OpenAI says ChatGPT-User handles user-initiated actions. Perplexity says Perplexity-User might visit a page to help answer a question and link it. Anthropic says Claude-User accesses sites when people ask Claude questions. Each verified request is one moment when your page was needed for a live question. Which pages get these is a useful list: those are the pages assistants reach for.

  5. Trends over time

    Count verified requests per crawler per week. A steady rise in user-triggered fetches is one of the few direct signals that assistants are using your site more. If the count drops to zero suddenly, check for a block first.

A simple way to do it

If your logs are text files, you can filter them with a spreadsheet or a short command. Export a week of logs. Keep the IP, date, URL, status, and user agent columns. Filter rows where the user agent contains each name above. Check a sample of IPs against the published lists. Then make a small pivot: crawler by week, crawler by URL, crawler by status.

If you use a CDN with bot analytics, the same view may already exist. Look for a breakdown by verified bot, and filter to the search and assistant categories.

What logs cannot tell you

  • The question. A ChatGPT-User request does not carry the person’s prompt.
  • The answer. A fetch is not a citation. The engine may read your page and cite another one.
  • Training versus search, always. OpenAI says that if a site allows both OAI-SearchBot and GPTBot, it may use one crawl for both purposes.
  • Google’s AI features separately. Googlebot crawls for all of Search. You cannot tell from logs which fetch fed an AI Overview. The Search Console report guide covers what Google does show.

Turning it into action

The most useful output is short. Three lines a month: which verified search crawlers visited and how often, which important pages they skipped, and which pages got the most user-triggered fetches. Fix any blocks. Link the skipped pages better. And look closely at the pages assistants keep fetching: make sure they are accurate, current, and say what you want them to say.

A worked example

Say a small software company exports a week of CDN logs and filters for the user agents above. It finds verified OAI-SearchBot requests on 40 pages, all returning 200. It finds PerplexityBot requests, but every one returns 403. And it finds a handful of ChatGPT-User requests, all to one help article about an integration.

Three actions follow. The 403s point to a firewall rule, so the team checks the bot settings and allows verified PerplexityBot. The help article is clearly being reached for in live questions, so they reread it, update an out-of-date screenshot, and add the current price of the integration. And their pricing page is missing from the OAI-SearchBot list entirely, so they check their sitemap and navigation, and find the page was only linked from a footer that loads with a script.

None of that needed the answers themselves. It came from reading who fetched what, and what they got back.

How long to keep logs

Keep at least a month, so you can compare one month with the next. If your CDN keeps only a few days, export weekly. A small spreadsheet of weekly counts per crawler takes little space and is enough for trends.

Privacy and storage

Access logs contain visitors’ IP addresses, which privacy laws in some places treat as personal data. For this work you only need the crawler rows. Filter them out, delete the rest of the export, and keep the summary rather than the raw file.

Related guides: is your firewall blocking AI search bots, how to track AI search traffic in GA4, and how Claude finds sources on the web.

Sources