# Find out from your logs whether AI crawlers can read your site

> Log file analysis means reading your server's access log to see which bots requested which pages and what they got back. For AI crawlers, answer five questions: who visits, by purpose; which hits are real; what errors bots receive; which pages they read; and whether robots.txt is respected. With nginx, Apache or Cloudflare logs it takes about 15 minutes.

Source: https://surfacedd.com/guides/log-file-analysis-for-ai-crawlers · Updated 2026-11-19

## What logs show that analytics can't

Your access log records every request your server answered, including the ones from bots. Analytics tools like GA4 run JavaScript in a browser, and crawlers don't run that JavaScript, so AI crawler traffic never appears in analytics. (The people who click through from an assistant's answer do appear there; our guide to [tracking AI traffic in GA4](/guides/track-ai-traffic-in-ga4) covers that side.) The log is the only place where you can see that OAI-SearchBot fetched your pricing page at 06:02 and got a 403.

For classic SEO, log file analysis meant checking crawl budget for Googlebot. For AI search there is a sharper question: **can the crawlers that feed ChatGPT, Claude, Perplexity and Google's AI answers read the pages you want cited?** robots.txt states your intent. Your log shows the outcome, after your CDN, firewall, rate limiter and server have all had their say.

Three things only a log reveals:

- **Blocked but allowed.** robots.txt allows a crawler, but a bot-protection rule answers it with 403 or a challenge page.
- **Allowed but absent.** A crawler is allowed and never comes. That usually means the assistant hasn't discovered you, or the crawler gave up after errors.
- **Present but fake.** Most of your "GPTBot" traffic comes from IPs OpenAI doesn't use.

## Getting your logs

Get at least seven days of raw access logs. Here is where they usually live.

| Source | Where to find it | Format |
|---|---|---|
| nginx | `/var/log/nginx/access.log` on most Linux packages; nginx's own default is `logs/access.log` | `combined`: IP, time, request, status, bytes, referrer, user agent |
| Apache | `/var/log/apache2/access.log` (Debian, Ubuntu) or `/var/log/httpd/access_log` (RHEL family) | `combined`, same fields as nginx |
| Cloudflare | Logpush job for the HTTP requests dataset, pushed to R2, S3 or another destination | JSON lines with `ClientIP`, `ClientRequestUserAgent`, `ClientRequestURI`, `EdgeResponseStatus`, `EdgeStartTimestamp` |
| Managed hosts and other CDNs | Usually a "raw logs" or "log export" setting; many offer CSV | CSV or JSON; map the columns once |

nginx's predefined `combined` format is `$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"`. If your server uses a custom format, keep at least the IP, timestamp, request line, status and user agent. ([nginx](https://nginx.org/en/docs/http/ngx_http_log_module.html))

If a CDN sits in front of your site, use the CDN's logs, not the origin's. Requests that the CDN blocks or answers from cache never reach your server, so the origin log hides exactly the problem you are looking for. Cloudflare says Logpush is available on Free, Pro, Business and Enterprise plans. It can't backfill: logs only flow from the moment the job starts, so set it up a week before you need the data. An HTTP requests record is about 1.5 to 3 kB uncompressed. ([Cloudflare](https://developers.cloudflare.com/logs/logpush/)) Our [Cloudflare integration page](/integrations/cloudflare) walks through the export.

## The five questions to answer

Work through these in order. Each one takes two or three minutes once your log is parsed.

### 1. Which AI crawlers visit, by purpose?

Count hits per crawler per day, then group them by job: search index, user fetch, training. Our [AI crawlers catalog](/guides/ai-crawlers) lists every user agent token and its purpose. The first thing to check is that the search crawlers appear at all. If Googlebot and Bingbot visit daily but OAI-SearchBot and PerplexityBot never do, something is stopping them or they haven't found you.

### 2. How many of those hits are real?

Check each claimed crawler's IP against its operator's published IP list, or run a forward-confirmed reverse DNS lookup where the operator supports it. Report verified, spoofed and unverifiable hits separately. A crawler's real traffic is its verified count. The method, with commands, is in [how to verify AI crawlers](/guides/verify-ai-crawlers).

### 3. What status codes do bots get?

For each crawler, compute the share of 2xx, 3xx, 4xx and 5xx responses. Healthy search crawler traffic is mostly 200 and 304. Watch for:

- **403** on many paths: a firewall or bot-protection rule is blocking the bot.
- **429**: rate limiting. Crawlers back off and visit less.
- **5xx**: your server is failing them. The robots.txt standard tells crawlers to treat a robots.txt that returns 5xx as "complete disallow", so a failing robots.txt endpoint blocks your whole site. ([RFC 9309](https://www.rfc-editor.org/rfc/rfc9309.html))
- **404 on pages you care about**: broken internal links or stale sitemaps sending bots to dead URLs.

### 4. Which pages does each bot read?

List the top paths per crawler. Compare that list with the pages you want cited: product, pricing, comparisons, docs. If OAI-SearchBot spends its visits on tag archives and never reaches `/pricing`, your internal links and sitemap aren't guiding it. Also look for pages that return 200 but are app shells, filled by JavaScript the crawler won't run. While you're here, check whether anything requests `/llms.txt`; our [llms.txt evidence review](/guides/llms-txt) explains why the answer is often "nobody".

### 5. Do bots respect your robots.txt?

Cross-check: for each crawler, find hits on paths your robots.txt disallows for it. A verified search crawler on a disallowed path usually means your rules don't say what you think they do. Test them in the [AI crawler checker](/tools/ai-crawler-checker). Hits from user fetchers on disallowed paths can be expected: OpenAI, Perplexity and Meta all say their user-triggered fetchers may not follow robots.txt.

## A worked example

Here is how the five questions play out on a week of logs from a fictional software company, after parsing.

| Crawler | Purpose | Hits (7 days) | Verified | 4xx/5xx | Note |
|---|---|---:|---:|---:|---|
| Googlebot | Search index | 4,210 | 99% | 1% | Healthy |
| OAI-SearchBot | Search index | 610 | 100% | 38% | 403 on `/pricing` and `/docs/*` |
| PerplexityBot | Search index | 0 | — | — | Absent |
| ChatGPT-User | User fetch | 145 | 100% | 2% | Reads `/compare/*` |
| GPTBot | Training | 1,980 | 41% | 0% | 59% spoofed |
| Bytespider | Training | 820 | — | 0% | Unverifiable |

Reading it:

1. **OAI-SearchBot gets 403 on the two sections that matter most.** robots.txt allows it, so the block comes from the CDN. The fix is a CDN rule allowing verified OpenAI search traffic. Until then, ChatGPT search can't quote the pricing page.
2. **PerplexityBot never visits.** robots.txt is fine, so check whether the CDN blocks it before it reaches the log. If not, Perplexity simply hasn't discovered the site yet, and links from pages Perplexity already cites are the realistic fix.
3. **GPTBot looks busy, but most of it is fake.** 59% of "GPTBot" hits come from IPs outside OpenAI's list. Real training traffic is about 810 hits, not 1,980.
4. **ChatGPT-User reads comparison pages.** People are asking ChatGPT about alternatives, and it fetches those pages live. They are worth keeping fast and current.

The numbers are invented for illustration. The pattern of a search crawler blocked by a CDN while robots.txt says "allow" is the most common finding we expect this method to surface.

## Privacy: keep aggregates, drop IPs

Access logs contain visitors' IP addresses, and in many jurisdictions those are personal data. For crawler analysis you don't need them after verification. Count first, then discard:

- Keep daily totals per crawler, verification label and status class, plus the top paths per crawler.
- Never store raw lines in a shared spreadsheet or upload them to a third-party analyzer you haven't vetted.
- Filter to bot lines early. Human traffic is irrelevant to this analysis and carries most of the personal data.

This is how Surfacedd works too: only daily aggregates and the top 200 paths per bot per day are stored, with no IP column anywhere. A schema test in the codebase checks that no IP value reaches the bot tables. 

## Doing it with free tools

You can answer questions 1, 3 and 4 without installing anything. The free [AI bot log analyzer](/tools/ai-bot-log-analyzer) parses nginx and Apache logs, Cloudflare Logpush JSON, JSON lines and CSV in your browser. The file is never uploaded, and CSV columns are mapped in a short dialog. It doesn't download IP lists, so it labels claimed crawlers "unchecked" rather than verified. Use command-line checks or the desktop app for question 2. 

For question 5, run your robots.txt through the [AI crawler checker](/tools/ai-crawler-checker) and compare its per-crawler verdicts with the paths in your log.

Desktop log analyzers built for classic SEO, such as Screaming Frog's Log File Analyser, also read these formats. Check that the bot list they use includes the AI-specific user agents, since OpenAI and Anthropic now each run separate search, user-fetch and training agents, and Perplexity separate search and user-fetch agents.

## In Surfacedd

Surfacedd's AI crawlers screen answers all five questions from one import. Drop in an nginx or Apache log, a Cloudflare Logpush file, JSON lines or a CSV export; for a CSV, a Match the columns dialog asks once which column holds the user agent, page, status, time and IP (see [crawler logs](/docs/features/crawler-logs)). `.gz` files up to 2 GB are streamed, not loaded into memory. The app verifies each claimed crawler against its operator's published ranges, then shows hits by purpose, verified share, errors served to bots, the pages each bot reads, and crawlers still requesting paths your robots.txt blocks. 

![The AI crawlers screen with totals for AI search hits, verified share, spoofed hits and AI search bots blocked, above a daily chart by purpose and tabs for pages read, errors served and robots.txt conflicts](https://surfacedd.com/shots/app/ai-crawlers-light.png "Sample workspace, fictional brand")
Imports are local and history is kept for 13 months, so you can re-import after a CDN change and see whether OAI-SearchBot's 403s stopped. See the [AI crawler analytics feature](/features/ai-crawler-analytics) or [pricing](/pricing). 

> [!doesnt] Not in 1.0
> Surfacedd 1.0 imports log files you export. Pulling logs straight from Cloudflare with an API token, and watching a folder for new logs, are planned for a later version. 

## Sources

- [nginx: ngx_http_log_module (log_format combined)](https://nginx.org/en/docs/http/ngx_http_log_module.html), checked 2026-11-19
- [Cloudflare: Logpush overview and availability](https://developers.cloudflare.com/logs/logpush/), checked 2026-11-19
- [Cloudflare: HTTP requests dataset fields](https://developers.cloudflare.com/logs/logpush/logpush-job/datasets/zone/http_requests/), checked 2026-11-19
- [RFC 9309: Robots Exclusion Protocol](https://www.rfc-editor.org/rfc/rfc9309.html), checked 2026-11-19
- [OpenAI: Overview of OpenAI crawlers](https://developers.openai.com/api/docs/bots), checked 2026-11-19
- [Perplexity: Perplexity crawlers](https://docs.perplexity.ai/guides/bots), checked 2026-11-19
- [Meta: Meta web crawlers](https://developers.facebook.com/docs/sharing/webmasters/web-crawlers), checked 2026-11-19

## Fair questions

### Why don't AI crawlers show up in Google Analytics?

GA4 counts visits by running a JavaScript tag in the visitor's browser. Crawlers fetch your HTML and don't execute that tag, so they never register. Only your server or CDN access logs record crawler requests. GA4 does show the human visitors who click through from AI assistants, which is a separate measurement covered in our GA4 AI traffic guide.

### How much log data do I need?

Seven days is enough to see which crawlers visit and what they get back, because the main search crawlers come daily on most sites. Use 28 days or more to see trends, or to judge whether a fix such as a CDN rule change worked. Keep the before and after periods the same length so the comparison is fair.

### Can I analyse Cloudflare logs on the free plan?

Cloudflare's Logpush documentation, last updated in October 2026, lists Logpush as available on Free, Pro, Business and Enterprise plans, with dataset availability depending on the products on your account. Logpush can't backfill, so logs only exist from the day you create the job. Some bot-score fields in the HTTP requests dataset need Bot Management.

### Is it legal to analyse access logs?

Analysing your own server logs for security and operations is routine, but the logs contain visitors' IP addresses, which privacy laws such as GDPR treat as personal data. Limit retention, filter to bot traffic early, and keep only aggregate counts once verification is done. Check your privacy notice covers server logs. This is not legal advice.

### What does a 304 response to a crawler mean?

A 304 Not Modified means the crawler asked whether the page had changed since its last visit, and your server said no. That's healthy: the crawler has a current copy without downloading the page again. A crawler getting mostly 304s on pages you've just updated suggests your server sends wrong Last-Modified or ETag headers.

### How often should I repeat log analysis?

Monthly is enough for most sites, plus once after any CDN, firewall or hosting change, because those are the changes that silently block crawlers. If you rely on AI search for leads, a weekly check of search crawler status codes catches problems before they cost you a month of citations.
