Log sources
Your server logs show every visit from GPTBot, ClaudeBot, PerplexityBot and the other AI crawlers, and which pages they read.
Two ways to read logs
- The CLI, on a file you already have:
npx citelog logs ./access.log. It detects the format; force one with--format combined,--format cloudflareor--format vercel. - The self-hosted desk, continuously: AI search › Crawlers gives each site a drain URL (
https://<your desk>/api/ingest/logs/<token>) for Cloudflare or Vercel to send logs to, or takes a file upload of up to 500 MB.
Only requests from known AI bots (and anything using their names) are kept. Everything else is dropped on arrival. The desk keeps raw bot requests for 90 days and daily totals after that.
nginx and Apache
Citelog reads the standard combined format. It's nginx's default when access_log names no format, and Apache's combined LogFormat:
log_format combined '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combinedPoint the CLI at the file (often /var/log/nginx/access.log or /var/log/apache2/access.log), or upload it to the desk. The CLI reads gzipped files (access.log.1.gz, Logpush .gz files) as they are.
Cloudflare Logpush
Use the HTTP requests dataset (http_requests) with JSON output, one record per line. Logpush availability depends on your Cloudflare plan; see Cloudflare's Logpush docs.
Fields Citelog needs:
| Field | Needed for |
|---|---|
ClientIP |
Verifying the bot against its published IP ranges |
ClientRequestUserAgent |
Naming the bot |
ClientRequestPath or ClientRequestURI |
The page it read |
EdgeStartTimestamp |
When (any timestamp format: unixnano, unix, RFC 3339) |
Also useful: EdgeResponseStatus, ClientRequestHost, ClientRequestMethod. When a required field is missing, Citelog names it.
For the desk, create a Logpush job with an HTTP destination and paste the site's drain URL as the destination. Cloudflare sends batches every few minutes; AI bots may not visit for a few hours. Nothing after an hour? The most common cause is a Logpush job filtered to a different zone.
Vercel log drains
Create a log drain in your Vercel project and choose JSON or NDJSON; both work. For the desk, use the site's drain URL as the endpoint. Drain availability depends on your Vercel plan; see Vercel's drains docs.
Citelog reads only entries with a proxy object (requests to your site; build logs have none) and uses proxy.path, proxy.userAgent, proxy.clientIp, proxy.statusCode and proxy.timestamp. Background revalidations (statusCode −1) are skipped.
Verified or unverified
A visit is verified when the request came from the bot vendor's published IP ranges. The ranges ship inside Citelog as a dated snapshot, so nothing is looked up at run time. Unverified means something used the bot's name from another address: often a scraper pretending to be GPTBot. Bots whose vendor publishes no ranges show "no IP list".
Privacy
Logs hold visitors' IP addresses. The CLI reads the file on your machine and sends nothing anywhere. The self-hosted desk stores only the AI bot requests it keeps, in its own database on your server.