Reading Server Logs for AI Bot Visits
How to find AI crawler visits in your server or CDN logs, verify them, and turn them into useful GEO signals, with commands and a worked example.
To see AI bot visits, filter your server or CDN access logs for AI user agent tokens such as GPTBot, OAI-SearchBot, ChatGPT-User, PerplexityBot, ClaudeBot and Claude-SearchBot, verify the IPs against each company's published lists, then check which URLs they request and what response codes they get. Analytics tools won't show this, because crawlers don't run tracking scripts. This tutorial walks through the process with example commands.
- Server logs show which AI crawlers and user-triggered fetchers actually request your pages, which no visibility tool can show directly.
- Filter by the user agents AI companies document, then verify requests against the IP ranges they publish.
- Separate training crawlers, search crawlers and user-triggered fetches, because they mean different things.
- In MentionX data, blog posts made up 19.6% of cited URLs and documentation 2.6%, so check that crawlers reach those pages.
- Logs show crawling, not citation: combine them with answer tracking to see the full picture.
Checked on 31 October 2026. "Our view" marks MentionX opinion. Ledgerline is a fictional company used for illustration.
01Where do your logs live?
| Setup | Where to look |
|---|---|
| Apache | Access log, typically configured via CustomLog (Apache docs) |
| Nginx | access_log file, often /var/log/nginx/access.log |
| CDN (Cloudflare, Fastly, Akamai, etc.) | The CDN's log export or analytics; often the most complete view |
| Managed hosting / platforms | Host dashboard or log drain |
If you use a CDN, its logs matter most: blocked requests may never reach your origin server.
02Step 1: Which user agents should you filter for?
Start with tokens documented by the AI companies:
GPTBot|OAI-SearchBot|ChatGPT-User|OAI-AdsBot|PerplexityBot|Perplexity-User|ClaudeBot|Claude-SearchBot|Claude-User|Googlebot|bingbotSources: OpenAI, Perplexity, Anthropic, Google, Bing. Google-Extended won't appear, because it has no separate user agent (Google).
03Step 2: How do you count visits by bot?
For a standard combined-format log, a quick shell count:
grep -Eo 'GPTBot|OAI-SearchBot|ChatGPT-User|PerplexityBot|Perplexity-User|ClaudeBot|Claude-SearchBot|Claude-User' access.log \
| sort | uniq -c | sort -rnAnd response codes per bot (in combined log format the status is the ninth field):
grep 'OAI-SearchBot' access.log | awk '{print $9}' | sort | uniq -cLog formats vary, so check your field positions first.
04Step 3: How do you verify the bot is real?
| Company | How |
|---|---|
| OpenAI | Compare IPs with openai.com/searchbot.json, gptbot.json, chatgpt-user.json |
| Perplexity | perplexity.ai/perplexitybot.json and perplexity-user.json |
| Anthropic | Published IP list linked in its help article |
| Reverse DNS then forward DNS, or Google's IP lists (Google) |
A request claiming to be a bot from an unlisted IP is an impersonator. Separate these in your counts, or your analysis will be wrong.
05Step 4: Which questions should the logs answer?
- Can each search crawler reach the site? Mostly 200 responses, few 403s.
- Which sections do they crawl? Group URLs by folder.
- Are important pages crawled? Check your top commercial and guide pages.
- Are they wasting time? Look for parameter URLs, redirects and 404s.
- Are user-initiated fetchers appearing? ChatGPT-User, Perplexity-User and Claude-User often indicate real users asking about specific pages.
06Step 5: How do you build a weekly report?
Automate a small table: requests and response codes per verified bot, top 10 URLs per bot and week-on-week change. Alert on:
- Any search crawler's 403 or 5xx share above a threshold you set.
- A bot's requests dropping to zero.
- A large spike from an unverified "bot".
07What about privacy?
Access logs contain IP addresses, which can count as personal data under laws such as the GDPR. Keep AI bot analysis within your existing log retention policy, filter to bot traffic early in your pipeline, and share aggregated tables rather than raw logs. Bot IPs from published ranges belong to companies, but your logs also contain human visitors.
08How does this connect to GEO results?
Crawl access is a precondition, not a guarantee. Combine log data with your prompt tracking: if a page is never requested by OAI-SearchBot, it's unlikely to be cited in ChatGPT search; if it's crawled regularly but never cited, the issue is more likely content or competition.
Treat logs as the access layer of your GEO measurement stack: they tell you whether you can be seen, while prompt tracking tells you whether you are.
09Common mistakes
- Looking at origin logs when the CDN blocks requests upstream.
- Counting unverified user agents as real bots.
- Confusing robots.txt fetches with page crawls; OpenAI may mark robots.txt requests in the user agent.
- Treating crawl volume as a visibility score.
10From MentionX data: what gets cited, to compare against your logsOriginal data
Method. Read-only aggregate queries over MentionX scans from 22 August to 29 October 2026 (UTC): 2,217 engine runs (2,154 completed) across 18 anonymised projects and six engines.
Logs tell you what crawlers fetch. Answer tracking tells you what engines cite. Across engines in our data, cited URLs broke down like this:
| Cited URL type | Share of 9,750 citations |
|---|---|
| Blog or article | 19.6% |
| Homepage | 10.0% |
| Review page | 2.7% |
| Docs | 2.6% |
| Pricing | 1.9% |
| Wikipedia | 1.6% |
Engines also cite at different rates. Perplexity averaged 9.56 citations per answer, Gemini 4.77 and AI Mode 3.15. Across 9,750 citations, none pointed to a .txt file, which includes llms.txt.
Comparing the two tells you useful things. If a page type is often cited in your category but your logs show crawlers rarely fetch your version, the problem may be access. If crawlers fetch a page heavily but it's never cited, the problem is more likely the content.
Our view: logs are the most reliable evidence of what AI systems actually access on your site, and they're underused.
Limits. A convenience sample of mostly B2B software projects, run through engine APIs, which can behave differently from the consumer apps. Perplexity, Copilot and DeepSeek figures come from a single day (26 October 2026), so treat them as a snapshot, not a trend.
11Worked example: Ledgerline checks its crawler access
Ledgerline is a fictional accounts-payable tool. Figures are illustrative.
Ledgerline exports a month of CDN logs and filters for documented AI user agents. After verifying IP addresses, it finds steady OAI-SearchBot and PerplexityBot traffic to the blog and homepage, but almost none to the pricing page or integration documentation.
The team checks robots.txt and finds a disallow rule on /docs/ left over from an old migration. It also finds the pricing page loads its prices with client-side JavaScript. They remove the stale rule and render the prices in the HTML.
Over the next month, crawler requests to /docs/ appear in the logs, and the team starts tracking whether pricing prompts cite the updated page.
12Which status codes should you watch?
Look at the share of AI crawler requests returning 200, 301/302, 404, 403 and 5xx. Many 403s can mean your firewall or bot protection is blocking crawlers you meant to allow. Many 404s point to broken links or old URLs. Redirect chains waste crawl effort, so point links straight at the final URL.
13How do you separate the three kinds of AI traffic?
Training crawlers, such as GPTBot and ClaudeBot, collect content that may be used to train models. Search crawlers, such as OAI-SearchBot, PerplexityBot and Claude-SearchBot, build the indexes that engines search when answering. User-triggered fetchers, such as ChatGPT-User, Perplexity-User and Claude-User, visit a page because a person's question led the assistant there. Tag each request with its category in your analysis. A rise in user-triggered fetches is the closest log signal you have to real people's questions leading to your pages; Perplexity, for example, says its user agent may include a link to the page in its answer.
14How do you verify requests are genuine?
User-agent strings are easy to fake. Check the request IP against the ranges each company publishes. Perplexity publishes separate JSON files for PerplexityBot and Perplexity-User, and OpenAI publishes ranges for its agents. For Googlebot and bingbot, use a reverse DNS lookup followed by a forward lookup, as both companies document. Treat unverified requests as unknown traffic, not as AI crawlers, and keep them out of your reports.
15What if a firewall is blocking crawlers?
Bot protection on a CDN can challenge or block AI crawlers even when robots.txt allows them. If your logs show 403 responses or challenge pages served to verified crawler IPs, add an allow rule that matches both the user agent and the published IP ranges. Perplexity's documentation gives examples for Cloudflare and AWS WAF, and notes that Cloudflare's Bot Fight Mode can still challenge its bots even with an allow rule in place.
16How long should you keep logs?
Long enough to compare months and spot trends, typically 90 days or more of filtered, aggregated data. Raw logs contain IP addresses of people too, so follow your privacy policy and data retention rules: keep only crawler records where possible, and aggregate before storing for longer.
17What can logs not tell you?
Logs show that a page was fetched, not whether it was used or cited. They don't show training data that was collected before your logs start, or content an engine got from a third-party source. Google-Extended has no user agent of its own, so it never appears. And because Google's AI features rely on Googlebot, you can't separate AI crawling from normal search crawling in Google's case. Combine logs with answer tracking and Search Console to fill the gaps.
18Which tools can help?
Your CDN or hosting provider's log export, a log analysis tool or a spreadsheet for smaller sites, and a simple script to filter, verify and count. Start simple: a weekly export filtered to documented user agents, with verified counts by bot, path and status code, covers most needs.
19Which pages should you check first?
Start with the pages that matter most for buyer questions: pricing, product and feature pages, comparison pages, key documentation and your most important guides. For each, check whether search crawlers have fetched it recently, what status code they got, and whether the version they received contains the main facts in HTML. If a key page hasn't been fetched in weeks, check internal links, your sitemap and robots.txt. Our view: a short list of priority URLs checked every week finds more fixable problems than a large dashboard nobody reads.
20How do you share findings?
Send a short monthly note to the web and content teams: crawler volume by category, any blocked or erroring priority pages, and fixes made. Keep the raw data with the analyst, and share only aggregated counts, without IP addresses.
21Common questions
Do user-triggered fetchers follow robots.txt? Not always. OpenAI and Perplexity say their user-triggered agents may not, because a person asked for the page. Check each company's documentation.
Does more crawling mean more citations? Not necessarily. Crawling makes citation possible, but content quality and relevance decide whether a page is used.
Should small sites bother with logs? Yes, a monthly look at a filtered export takes under an hour.
22Checklist
- Access to CDN and origin logs
- User agent filter list maintained
- IP verification for each company
- Weekly counts and alerts
- Monthly review against prompt tracking
23Where to go next
Questions people ask
3 answersWhere do I find server logs?
+
On your web server (e.g. Apache or Nginx access logs), in your CDN's log or analytics product, or from your host's dashboard.
Does Google Analytics show bot visits?
+
No. GA4 filters known bot traffic, and crawlers don't run analytics scripts. You need server or CDN logs.
How often should I review AI bot logs?
+
Weekly automated counts, with a deeper monthly review, works for most sites.
Sources
- Apache, Log fileshttpd.apache.org
- OpenAI, Overview of OpenAI crawlersdevelopers.openai.com
- Perplexity, Perplexity crawlersdocs.perplexity.ai
- Anthropic, Crawler help articlesupport.claude.com
- Google, Verifying Googlebotdevelopers.google.com