Documentation Index
Fetch the complete documentation index at: https://docs.searchable.com/llms.txt
Use this file to discover all available pages before exploring further.
What this does
Vercel’s Log Drain feature streams every inbound request to a destination of your choosing. We point that drain at Searchable’s ingest endpoint, classify the AI bots, and drop everything else.No code changes. All configuration is done inside the Vercel dashboard.
Prerequisites
A Vercel project on the Pro or Enterprise plan (Log Drains aren’t available on Hobby)
Owner or Member-with-admin access to the Vercel project
A Searchable project with your domain confirmed
Setup
Generate an integration token in Searchable
- Open your Searchable dashboard
- Go to Agent Analytics → Setup
- Pick Vercel as your crawler source
- Click Generate token
sa_… and won’t be shown again. You can always generate a new one if you lose it.Open Vercel's Log Drain settings
Navigate to your Vercel project:Project Settings → Log Drains → AddOr open it directly: vercel.com/dashboard/log-drains
Configure the drain
Fill in these fields:
| Field | Value |
|---|---|
| Delivery format | NDJSON |
| Endpoint | https://searchable-tracker.searchable.workers.dev/v1/vercel-logs |
| Custom headers | Authorization: Bearer <your-sa_-token> |
| Sources | Functions, Edge Functions, Static Files, Firewall, Redirects |
| Sampling rate | 100% |
What Searchable receives
For each request, the Log Drain sends a small NDJSON record with:- HTTP method, path, host (query strings stripped before storage)
- User agent
- Referer
- Status code, response bytes
- Timestamp
- Geo country (from Vercel’s edge metadata)
Verifying the connection
In Searchable:- Go to Agent Analytics → Setup
- Look at the status strip at the bottom of the page
- Click Check if it still shows “Waiting for first event”
| Status | What it means |
|---|---|
| Waiting for first event | The drain is configured but no AI bot has hit your site yet. Typical wait is a few hours for sites that are already indexed. |
| Connected | Events are arriving. The strip shows the count from the last 24 hours. |
204 No Content.
Troubleshooting
Vercel reports `401 Unauthorized` deliveries
Vercel reports `401 Unauthorized` deliveries
Vercel reports `400 Bad Request` deliveries
Vercel reports `400 Bad Request` deliveries
The delivery format isn’t NDJSON.
- In the drain settings, set Delivery format to
NDJSON(not JSON or Logfmt) - Save the drain — Vercel will retry pending deliveries
Status stays on 'Waiting for first event' for more than 24 hours
Status stays on 'Waiting for first event' for more than 24 hours
A few possible causes:
- The drain isn’t enabled (check Vercel — drains can be paused)
- The selected sources don’t include the routes AI bots are hitting (re-check Sources includes Static Files and Functions)
- Your domain in Searchable doesn’t match the project on Vercel (check Agent Analytics → Setup → Confirm your domain)
My plan is Hobby — can I still use this?
My plan is Hobby — can I still use this?
Log Drains are a Pro / Enterprise feature on Vercel. On Hobby, your options are:
- Upgrade Vercel to Pro
- Use the Cloudflare Worker path if your domain sits behind Cloudflare
- Use the custom REST API path with Next.js middleware
Removing the integration
To stop sending traffic to Searchable:- Vercel → Project Settings → Log Drains → delete the drain
- Searchable → Agent Analytics → Setup → Tokens → revoke the token
401).
Next steps
See the data
Open Agent Analytics to see which assistants are crawling your site.
Add Search Console
Correlate AI crawls with search demand.