Vercel Log Drains
Stream Vercel access logs to AI Search Index using Log Drains.
Endpoint
POST
/api/v1/logs/vercelURL: https://aisearchindex.com/api/v1/logs/vercel
Headers:
x-api-key: bot_YOUR_BOT_TRACKING_KEYSetup Steps
- 1
Open Project Settings
In Vercel, go to your project → Settings → Log Drains
- 2
Add Log Drain
Click Add Log Drain
- 3
Configure Destination
Select HTTP and enter the endpoint:
Endpoint: https://aisearchindex.com/api/v1/logs/vercel Secret: bot_YOUR_BOT_TRACKING_KEY - 4
Select Sources
Select Edge and/or Lambda as log sources
- 5
Save
Click Create Log Drain to save
Verify Integration
- Visit your Vercel-hosted website to generate traffic
- Wait a few minutes for logs to be processed
- Check your AI Search Index dashboard for incoming data
Tip: Vercel Log Drains work best with Edge functions. If you're using serverless functions, also consider adding the tracking pixel for comprehensive coverage.