In short
Access logs record every request received by your server or your CDN (Content Delivery Network): IP address, date, URL, HTTP code, user agent. They are the only source that shows how AI crawlers actually behave: which ones come, to which pages, how often, and with what response. Once this check is done, you have a regular record of visits per crawler and per HTTP code, and you know where to act.
Why it matters
Traditional analytics tools rely on JavaScript executed in the browser. AI crawlers do not execute it: they are invisible in those reports. Search engine consoles, for their part, only cover their own crawler. Only logs answer these questions:
- Is the search crawler I am targeting visiting? An OAI-SearchBot, PerplexityBot or Claude-SearchBot that is absent from the logs cannot feed your pages into its engine's index.
- What does it receive? A crawler allowed in robots.txt but served a 403 or a 429 is blocked in practice.
- Which pages interest the assistants? User-triggered fetchers (ChatGPT-User, Perplexity-User, Claude-User) visit when a user asks a question that leads to your page. Their visits indicate the content actually in demand.
- Who is consuming my resources? A training crawler that scrapes thousands of filter URLs deserves a dedicated rule.
- Who is lying? A “GPTBot” user agent coming from an address outside OpenAI's ranges is an impostor.
Logs do not tell you whether a page was cited in an answer. They measure access, not visibility.
What it improves
- Crawling You detect blocks and errors served to crawlers, which are otherwise invisible.
- Editorial prioritization The pages requested by user-triggered fetchers reveal the topics on which assistants rely on you. A useful signal, with no guarantee of a citation.
- Steering You feed the AI crawler visits (opens in a new tab) indicator with verifiable figures.
- Server costs You identify greedy crawlers and crawler traps.
- Security You spot user agent spoofing.
How to check
Three questions are enough to know where you stand.
1. Do you have access to the logs, and over what period? Look for them according to your environment (next section). Less than thirty days of history will not let you see infrequent crawlers.
2. Is the user agent recorded? Display one line:
tail -n 1 /var/log/nginx/access.log
Compliant result, in the “combined” format:
20.171.206.10 - - [24/Nov/2026:10:15:32 +0100] "GET /guide/ HTTP/1.1" 200 48213 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot"
3. Do AI crawlers appear?
grep -c -E "OAI-SearchBot|GPTBot|ChatGPT-User|PerplexityBot|Perplexity-User|Claude-SearchBot|ClaudeBot|Claude-User" /var/log/nginx/access.log
A result of zero over several weeks means either that the site is blocked upstream, or that the logs you are reading do not see this traffic (pages served from the CDN cache).
How to implement
Before you start
- Read the logs of the furthest upstream layer. Behind a CDN, pages served from the cache never reach your server: its logs underestimate crawler visits. Analyze the CDN's logs when they exist.
- Restore the client's real address. Behind a proxy, the server records the proxy's address until you configure
mod_remoteip(Apache) orreal_ip_header(Nginx). - Keep logs long enough, but not indefinitely. An IP address is personal data: set a retention period, document it and restrict access to the files.
- Keep the list of crawlers up to date from your AI crawler inventory (opens in a new tab).
Ready-to-use commands
The following commands assume the Apache and Nginx combined format. First define the file and the list of crawlers:
LOG=/var/log/nginx/access.log
BOTS='OAI-SearchBot|GPTBot|ChatGPT-User|PerplexityBot|Perplexity-User|Claude-SearchBot|ClaudeBot|Claude-User|Googlebot|bingbot'
Number of requests per crawler:
awk -F'"' -v bots="$BOTS" 'match($6, bots) {print substr($6, RSTART, RLENGTH)}' "$LOG" | sort | uniq -c | sort -rn
HTTP codes per crawler:
awk -F'"' -v bots="$BOTS" 'match($6, bots) {split($3, s, " "); print substr($6, RSTART, RLENGTH), s[1]}' "$LOG" | sort | uniq -c | sort -rn
Errors (codes 400 and above) with the URL concerned:
awk -F'"' -v bots="$BOTS" 'match($6, bots) {split($3, s, " "); split($2, r, " "); if (s[1] >= 400) print s[1], substr($6, RSTART, RLENGTH), r[2]}' "$LOG" | sort | uniq -c | sort -rn | head -50
Pages most requested by a given crawler:
awk -F'"' '$6 ~ /ChatGPT-User/ {split($2, r, " "); print r[2]}' "$LOG" | sort | uniq -c | sort -rn | head -30
Requests per day and per crawler:
awk -F'"' -v bots="$BOTS" 'match($6, bots) {bot = substr($6, RSTART, RLENGTH); split($1, p, " "); print substr(p[4], 2, 11), bot}' "$LOG" | sort | uniq -c
Addresses used by each crawler, to run through identity verification afterwards:
awk -F'"' -v bots="$BOTS" 'match($6, bots) {split($1, p, " "); print substr($6, RSTART, RLENGTH), p[1]}' "$LOG" | sort | uniq -c | sort -rn | head -40
Sitemap pages that no crawler has requested:
curl -s https://example.com/sitemap.xml | grep -o '<loc>[^<]*' | sed -e 's/<loc>//' -e 's#https://example.com##' | sort -u > sitemap-urls.txt
awk -F'"' -v bots="$BOTS" 'match($6, bots) {split($2, r, " "); print r[2]}' "$LOG" | sed 's/?.*//' | sort -u > urls-robots.txt
comm -23 sitemap-urls.txt urls-robots.txt | head -50
Human visits coming from an AI assistant, based on the referrer:
awk -F'"' '$4 ~ /chatgpt\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com/ {print $4}' "$LOG" | awk -F/ '{print $3}' | sort | uniq -c | sort -rn
To include archived and compressed files, replace "$LOG" with a streamed read: zcat -f /var/log/nginx/access.log* | awk ….
Warning: these counts rely on the user agent, which can be faked. Before drawing conclusions, verify crawler identity against official IP ranges (opens in a new tab).
Reading the results
| Finding | Likely interpretation | Action |
|---|---|---|
| AI search crawler absent | Upstream block (CDN, firewall), or site rarely discovered | Test HTTP responses for each crawler (opens in a new tab) |
The crawler only requests /robots.txt |
It reads your rules and stops: a Disallow rule applies to it |
Review the robots.txt file |
| High share of 403s or 429s | Firewall or rate limit | Check rate limits (opens in a new tab) |
| Many 404s | Outdated internal links or sitemap | Fix the links, redirect |
| Many 301s | The crawler follows old URLs | Update internal linking and the sitemap |
| A crawler concentrates its requests on parameterized URLs | Crawler trap (filters, calendars) | Targeted Disallow rules |
| User-triggered fetchers active on a few pages | These pages answer questions put to assistants | Keep them up to date as a priority |
| Addresses outside the official ranges | Spoofing | Treat as unverified traffic |
Apache
Versions Apache 2.4.
Default logs: /var/log/apache2/access.log on Debian and Ubuntu, /var/log/httpd/access_log on the Red Hat family, or the file set by the virtual host's CustomLog directive. Check that the format is combined (the common format does not record the user agent):
CustomLog ${APACHE_LOG_DIR}/example-access.log combined
Rotation is handled by logrotate (/etc/logrotate.d/apache2): increase the rotate value to keep more history.
Nginx
Versions Nginx 1.18 and later (if= parameter of access_log available since 1.7).
Default log: /var/log/nginx/access.log, or the file set by the access_log directive in the server block. The default format, combined, is suitable. To isolate AI crawlers in a dedicated file, add in the http context:
map $http_user_agent $robot_ia {
default 0;
"~*(OAI-SearchBot|GPTBot|ChatGPT-User|PerplexityBot|Perplexity-User|Claude-SearchBot|ClaudeBot|Claude-User)" 1;
}
Then in the server block:
access_log /var/log/nginx/robots-ia.log combined if=$robot_ia;
sudo nginx -t && sudo systemctl reload nginx
Rotation: /etc/logrotate.d/nginx.
IIS
Versions IIS 10 (Windows Server 2016 to 2025).
Logs are in %SystemDrive%\inetpub\logs\LogFiles\W3SVC<site ID>\, in W3C format. In IIS Manager, open Logging > Select Fields and check that “User Agent (cs(User-Agent))” is ticked. In this format, spaces in the user agent are replaced with +. Count per crawler in PowerShell:
$robots = "OAI-SearchBot|GPTBot|ChatGPT-User|PerplexityBot|Perplexity-User|Claude-SearchBot|ClaudeBot|Claude-User"
Select-String -Path "C:\inetpub\logs\LogFiles\W3SVC1\*.log" -Pattern $robots |
ForEach-Object { [regex]::Match($_.Line, $robots).Value } |
Group-Object | Sort-Object Count -Descending | Select-Object Count, Name
For more in-depth analysis, Microsoft's Log Parser queries these files in SQL.
Plesk
Versions Plesk Obsidian 18.0.
Interface: Websites & Domains > your domain > Logs, with a text filter and file selection. On the server, the files are in /var/www/vhosts/system/example.com/logs/: access_ssl_log (Apache, HTTPS) and proxy_access_ssl_log (Nginx in front, HTTPS). When Nginx sits in front of Apache, read the proxy_ file: it sees every request, including static files. The retention period is set from the Logs page: the Manage Log Files icon at the top right, then Log Rotation.
cPanel
Versions cPanel & WHM 134 to 138 (Jupiter theme).
- Raw logs:
Metrics > Raw Accesslets you download the month's archive per domain. Tick the option to archive logs in your home directory to keep the history, otherwise the files are purged. - AWStats:
Metrics > Awstatsshows a section dedicated to robots. Its signature database does not always know recent AI crawlers, which may be classified as unknown visitors: rely on the raw logs. - Over SSH: the files are linked from
~/access-logs/.
Decompress, then apply the commands above: gunzip -c example.com-ssl_log-Nov-2026.gz | grep -c GPTBot.
Shared hosting
Most hosting providers give access to raw logs from the customer area (the French providers OVHcloud under “Statistics and logs”, o2switch through cPanel; access logs in the manager at Infomaniak or Hostinger). The history is often short: download the files every month. Without SSH access, analyze them on your own computer with the same commands or with a graphical tool.
Cloudflare
Versions Cloudflare dashboard, all plans (Logpush datasets depending on the account's products), November 2026.
- AI Crawl Control (all plans): the page lists the AI crawlers accessing the site, their request volume, the action applied and their robots.txt compliance. It is the quickest view, and it includes pages served from the cache.
- Security > Analytics, including the
Eventstab: filter by user agent to see requests that were served, challenged or blocked. - Logpush: exports full HTTP logs to a storage destination (R2, S3, etc.). Useful fields:
ClientRequestUserAgent,ClientIP,ClientRequestURI,EdgeResponseStatus,CacheCacheStatus. The availability of datasets depends on the plan. Example of working with the exported files:
zcat -f *.log.gz | jq -r 'select(.ClientRequestUserAgent | test("GPTBot|ClaudeBot|PerplexityBot|OAI-SearchBot")) | [.EdgeResponseStatus, .ClientRequestURI] | @tsv' | sort | uniq -c | sort -rn | head
On the origin server, restore the visitor's address from the CF-Connecting-IP header, otherwise every visit appears to come from Cloudflare.
AWS
Versions CloudFront (standard logging v2), Application Load Balancer, S3, AWS WAF and Athena, November 2026 consoles.
CloudFront: in the CloudFront console, enable standard logging for the distribution (Logging tab), to an S3 bucket or CloudWatch Logs. In Athena, create the cloudfront_standard_logs table with the statement provided in the AWS documentation, then query it:
SELECT regexp_extract(cs_user_agent, 'OAI-SearchBot|GPTBot|ChatGPT-User|PerplexityBot|Perplexity-User|Claude-SearchBot|ClaudeBot|Claude-User') AS robot,
sc_status,
COUNT(*) AS requetes
FROM cloudfront_standard_logs
WHERE "date" >= current_date - interval '30' day
AND regexp_like(cs_user_agent, 'OAI-SearchBot|GPTBot|ChatGPT-User|PerplexityBot|Perplexity-User|Claude-SearchBot|ClaudeBot|Claude-User')
GROUP BY 1, 2
ORDER BY requetes DESC;
Application Load Balancer: enable access logs in the load balancer attributes (S3 destination). In the alb_access_logs Athena table from the AWS documentation, the user agent is in the user_agent column, the code in elb_status_code and the URL in request_url.
S3 (static site): enable server access logging in the bucket properties. Delivery is not guaranteed to be complete: prefer CloudFront logs if the bucket sits behind a distribution.
AWS WAF: the web ACL logs, enabled from the AWS WAF console, also show the rule that blocked a request.
Vercel
Versions Vercel dashboard, Hobby, Pro and Enterprise plans (Drains: Pro and Enterprise), November 2026.
The project's Logs tab displays recent requests with their user agent, over a limited retention period that depends on the plan. For a usable history, configure a Drain of the Logs type to a logging service (Pro and Enterprise plans). The Firewall tab shows bot traffic and the rules applied.
Netlify
Versions Netlify Edge Functions, all plans (Log Drains: Enterprise), November 2026.
Netlify does not expose raw access logs for static files; Log Drains, which also cover traffic logs, are reserved for the Enterprise plan. An Edge Function lets you log AI crawler visits, which then appear in the function logs. File netlify/edge-functions/log-robots.js:
export default async (request, context) => {
const userAgent = request.headers.get("user-agent") || "";
const match = userAgent.match(/OAI-SearchBot|GPTBot|ChatGPT-User|PerplexityBot|Perplexity-User|Claude-SearchBot|ClaudeBot|Claude-User/);
if (!match) {
return;
}
const response = await context.next();
console.log(JSON.stringify({
robot: match[0],
path: new URL(request.url).pathname,
status: response.status,
ip: context.ip,
}));
return response;
};
export const config = { path: "/*" };
Every Edge Function invocation counts toward your quota.
WordPress
Versions WordPress 6.4 to 7.1.
WordPress keeps no access log: use the hosting provider's (the dashboard of managed hosts, otherwise cPanel or Plesk). Plugins that record crawlers in the database do not see pages served by a page cache or a CDN, and add weight to every request: reserve them for a one-off diagnosis.
Analysis tools
- GoAccess (free, command line): produces an HTML report from a log. For a report limited to AI crawlers:
grep -E "$BOTS" "$LOG" | goaccess --log-format=COMBINED -o robots-ia.html -
- Screaming Frog Log File Analyser (free version limited in number of lines): drag-and-drop import, crawler verification, cross-referencing with a crawl.
- Matomo: its log import script feeds a dedicated measurement site, useful for tracking crawlers over time.
- SEO log analysis platforms (Oncrawl, Botify, Seolyzer) and observability stacks (Elastic, Grafana Loki, Datadog): for large volumes and continuous monitoring.
Schedule at least a monthly review, and keep a history of the results (opens in a new tab) to compare over time.
Common mistakes
- Analyzing origin logs behind a CDN: requests served from the cache are missing.
- Counting occurrences with a plain
grep -o: the crawler's name often appears twice in the user agent (name and URL), which doubles the totals. The commands above count only one occurrence per line. - Taking the user agent at its word: without IP verification, some of the “crawlers” are scripts.
- Looking for outdated names:
anthropic-ai,Claude-Webor old tokens no longer match current crawlers. - Forgetting compressed files: rotation archives logs as
.gz; analyzing only the current file sometimes covers less than a day. - Confusing a visit with a citation: a crawler that reads a page says nothing about what the engine will do with it.
- Keeping the
commonformat: without the user agent, no analysis per crawler is possible.
Frequently asked questions
How do I know whether GPTBot or ClaudeBot visits my site?
Server or CDN access logs record the user agent of every request: searching for “GPTBot” or “ClaudeBot” in these files shows their visits, the pages requested and the HTTP codes received. JavaScript-based analytics tools do not see them, because these crawlers do not execute scripts. Then verify the IP address, since any script can borrow these names.
Do AI crawlers show up in my analytics?
No, AI crawlers do not show up in traditional analytics tools, which rely on a script executed in the browser: these crawlers download the HTML without executing the tracking JavaScript. To find out which AI crawlers visit your site, you need to read the access logs. Only human visits coming from an AI assistant, identifiable by their referrer, appear in your analytics.
Does an AI crawler visit in the logs mean my page is cited?
No, an AI crawler visit in the logs only proves that the page was read. Logs measure access, not visibility: they do not tell you whether the engine kept the page or whether it cites it in an answer. Visits from user-triggered fetchers such as ChatGPT-User remain the closest clue to actual use, since they follow a user's request.
Why do my logs show no AI crawlers?
When the logs show no AI crawlers over several weeks, two causes dominate. Either a CDN or a firewall blocks these crawlers upstream, before the server. Or you are reading the origin server's logs while the CDN serves pages from its cache, and those requests never reach it. Analyze the logs of the furthest upstream layer, then test the HTTP responses for each crawler.
Resources
- OpenAI: crawlers and user agentsdevelopers.openai.com
- Perplexity: crawlers and IP rangesdocs.perplexity.ai
- Anthropic: Claude's crawlerssupport.claude.com
- Google: list of crawlersdevelopers.google.com
- Apache: log fileshttpd.apache.org
- Nginx: logging modulenginx.org
- Cloudflare: AI Crawl Control and Logpushdevelopers.cloudflare.com
- Amazon Athena: querying CloudFront logsdocs.aws.amazon.com
- GoAccess: documentationgoaccess.io
Updated on
Topic checklist (PDF)