The short version
To find AI crawlers in server logs, filter your Nginx or Apache access log by each bot's user-agent token, count the hits by agent and by path, then confirm each one is genuine with a reverse DNS check or the operator's published IP list. Your logs are the only honest record, because AI crawlers do not run JavaScript, so analytics tags never see them.
- One grep over the combined access log surfaces every AI crawler request at once.
- Separate three jobs that look alike in a log: training crawls, search index crawls and user-triggered fetches.
- Count AI referrals from the referrer field, not the user agent, or you will double count.
You cannot improve what you cannot see, and most site owners cannot see AI crawlers at all. ChatGPT, Perplexity, Claude and Google read the web through automated fetchers that announce themselves in your server logs and nowhere else. This guide shows the exact commands to find them in Nginx and Apache logs, how to tell one kind of fetch from another, and how to verify that a request claiming to be GPTBot really is.
Why are server logs the only honest record of AI crawlers?
Your analytics tool is blind to crawlers. Google Analytics, and any tag that depends on JavaScript, only counts a visit when a browser runs its script. Crawlers request the raw HTML and leave. They do not execute JavaScript, so they never trip the tag. The request still happened, and your web server wrote it down. The access log is the record.
That is why log analysis, not a dashboard, is the starting point. The log holds one line per request with the timestamp, the path, the status code, the referrer and the user-agent string. Everything below reads those fields.
Where do your logs live, and why is the edge log often truer?
On a plain server, the access log is a file: commonly /var/log/nginx/access.log for Nginx and /var/log/apache2/access.log or /var/log/httpd/access_log for Apache, both in the combined log format by default.
If your site sits behind a CDN such as Cloudflare or Fastly, the picture splits in two. The edge sees every request. Your origin server sees only the requests the edge passes back to it, and a crawler fetching a cached page may never reach the origin at all. So the origin log can undercount AI crawlers badly. When a CDN is in front, treat the edge log or the CDN's bot report as the fuller source, and remember the origin log is a partial view.
Note
Behind a proxy, the client IP in your origin log may be the proxy's own address. To verify crawlers by IP you need the real client address, usually carried in an X-Forwarded-For header that your log format has to be told to record.
How do you find AI crawlers in Nginx and Apache logs?
The combined log format is the same for both servers, so one command works across them. This grep surfaces every major AI user agent in the file:
grep -iE "GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|Claude-SearchBot|Claude-User|PerplexityBot|Perplexity-User|Applebot|Amazonbot|Bytespider|CCBot" /var/log/nginx/access.logTo rank the crawlers by volume, pull the user-agent field (the last quoted field in the combined format) and tally it:
grep -iE "GPTBot|OAI-SearchBot|ClaudeBot|PerplexityBot|Applebot" /var/log/nginx/access.log \
| awk -F'"' '{print $6}' | sort | uniq -c | sort -rnTo see which pages one crawler is pulling, filter to its token and count by path (field 7 is the request line in the combined format):
grep "GPTBot" /var/log/nginx/access.log \
| awk '{print $7}' | sort | uniq -c | sort -rn | head -20On Apache the file path differs but the fields are identical, so the same awk positions apply. Run these against rotated logs too (access.log.1, the gzipped .gz files via zgrep) so you cover more than the last day.
Watch out
Match tokens, not loose words. A bare search for "bot" or "AI" will catch unrelated traffic, and some tokens are case-sensitive in practice, so keep the specific names and use -i deliberately. Google-Extended will not appear here at all: it is a robots.txt control token, not a crawler, so it never sends requests. See the FAQ below.
How do you separate training crawls, search fetches and user actions?
Three different jobs leave similar-looking lines, and they mean different things for your business. OpenAI documents the split plainly: GPTBot "is used to crawl content that may be used in training our generative AI foundation models", OAI-SearchBot "is used to surface websites in search results in ChatGPT's search features", and ChatGPT-User covers fetches that "are initiated by a user" (OpenAI bot documentation). Perplexity draws the same line: PerplexityBot "is designed to surface and link websites in search results", while Perplexity-User "supports user actions" when "users ask Perplexity a question" (Perplexity bot documentation).
Group the tokens you found by that purpose. The table below uses the operators' own classifications, cross-checked against Cloudflare's crawler reference (Cloudflare AI crawler reference).
| Purpose | What it means for you | Example user agents |
|---|---|---|
| Training | Content may feed a model's training set. Governed by robots.txt. | GPTBot, ClaudeBot, Google-CloudVertexBot, Amazonbot, Bytespider, CCBot |
| Search index | Builds the index the assistant draws on to name and cite you. | OAI-SearchBot, PerplexityBot, Claude-SearchBot, Applebot, Bingbot |
| User fetch | A person asked a question and the assistant opened your page to answer it. | ChatGPT-User, Perplexity-User, Claude-User, Meta-ExternalFetcher |
The search and user-fetch rows are the ones tied to whether an assistant can find and cite you right now. A spike in user fetches on a specific page often means an assistant is reading it to answer live questions, which is worth knowing when you decide what to keep accessible.
ChatGPT-User is not used for crawling the web in an automatic fashion. Because these actions are initiated by a user, robots.txt rules may not apply.
OpenAI bot documentation
Why count AI referrals from the referrer, not the user agent?
Crawler fetches and human visits are two separate things, and mixing them inflates both. A crawler fetch is a bot user agent pulling your HTML. An AI referral is a person who clicked a link inside an assistant's answer and landed on your site in a normal browser. That visit does run JavaScript, so analytics can see it, and it carries a referrer such as chatgpt.com, perplexity.ai, gemini.google.com or copilot.microsoft.com.
So read the two signals from two different fields. Count crawler activity from the user-agent field, and count referrals from the referrer field (field 5 in the combined format):
awk -F'"' '$4 ~ /chatgpt\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com/ {print $4}' \
/var/log/nginx/access.log | sort | uniq -c | sort -rnIf you match the same request on both the user agent and the referrer, you count one event twice. Keep them separate: crawler fetches tell you who is reading your site, referrals tell you whether any humans arrived from an assistant. Treat every referral number as a floor, because not every assistant passes a referrer.
How do you confirm an AI crawler is genuine?
A user-agent string is just text, and anything can send it. Before you act on a bot's behavior, confirm the request came from the operator. There are two accepted methods.
- Reverse DNS, forward confirmed. Google's own instruction is to "run a reverse DNS lookup on the accessing IP", verify the domain belongs to the operator, then "run a forward DNS lookup on the domain name" and check it resolves back to the same IP (Google's verifying Googlebot guide). Use
host <ip>, thenhoston the name it returns. - Match the published IP list. Major operators publish the address ranges their crawlers use. OpenAI lists them at openai.com/gptbot.json (and a file per bot), and Perplexity at perplexity.ai/perplexitybot.json. A request claiming to be GPTBot from an address outside the published ranges is spoofed, and you can drop it from your counts.
Verification matters most before you block or report. A spoofed "GPTBot" could be a scraper hiding behind a trusted name, and treating fake hits as real will mislead every number you build on top of them.

Which patterns are worth acting on?
Volume alone is not a problem. Look for a mismatch between what a crawler takes and what it gives back, and for signs that your server is answering a bot badly.
- Heavy fetching with no referrals. A crawler pulling hundreds of pages while the referrer field never shows that assistant means you are feeding an index or a training set without any visits in return. That is a signal to decide, through robots.txt, what you want each purpose to have.
- Errors served to a bot. Filter crawler lines to 4xx and 5xx status codes. If a search crawler keeps hitting 404s or 500s on pages you care about, the assistant may be indexing broken or missing content, which hurts how it represents you.
- One token hammering one path. A single user agent requesting the same URL at a high rate can be a crawl loop or a misconfiguration worth a closer look, and sometimes a spoofed agent worth verifying by IP.
None of this requires special software. Plain grep, awk, sort and uniq over the combined log answer every question above.
Where TaliAds fits
Running these commands by hand is the right way to understand your logs, and it is fine for a weekly check. If you want the same reading kept current, TaliAds can read your server's own logs through a collector and show AI crawler fetches and AI referrals next to how often assistants actually name and cite you, so the crawl side and the answer side sit in one view. You can see the AI crawler and referral logs that TaliAds reports.
Frequently asked questions
Why doesn't Google Analytics show AI crawlers?
Because AI crawlers do not execute JavaScript. Analytics tags only fire when a browser runs their script, and a crawler requests the raw HTML and leaves. The request is in your server log, not your analytics report.
Does Google-Extended show up in my logs?
No. Google-Extended is a robots.txt control token that tells Google whether content Googlebot already fetched may be used for Gemini and Vertex AI. It is not a crawler and sends no requests, so it never appears as a user agent in your log. It also does not affect Google AI Overviews, which rely on ordinary Googlebot.
How do I tell a training crawl from a search crawl?
By the user-agent token and the operator's documentation. GPTBot and ClaudeBot are training crawlers; OAI-SearchBot, PerplexityBot and Claude-SearchBot build search indexes; ChatGPT-User, Perplexity-User and Claude-User are user-triggered fetches. Group your log hits by those three purposes.
How often should I check my logs for AI crawlers?
A weekly pass with the commands above is enough to spot a new crawler, a change in volume or a run of errors. Check sooner after you change robots.txt or your CDN rules, so you can confirm the change took effect.

