Vercel Log Drains

Stream Vercel access logs to AI Search Index using Log Drains.

Open Beta

This integration is currently in open beta. While functional, you may encounter occasional issues or changes as we refine the implementation. We welcome your feedback at contact.

Endpoint

POST/api/v1/logs/vercel
URL: https://aisearchindex.com/api/v1/logs/vercel
Headers:
  x-api-key: bot_YOUR_BOT_TRACKING_KEY

Setup Steps

  1. 1

    Open Project Settings

    In Vercel, go to your project → SettingsLog Drains

  2. 2

    Add Log Drain

    Click Add Log Drain

  3. 3

    Configure Destination

    Select HTTP and enter the endpoint:

    Endpoint: https://aisearchindex.com/api/v1/logs/vercel
    Secret: bot_YOUR_BOT_TRACKING_KEY
  4. 4

    Select Sources

    Select Edge and/or Lambda as log sources

  5. 5

    Save

    Click Create Log Drain to save

Verify Integration

  1. Visit your Vercel-hosted website to generate traffic
  2. Wait a few minutes for logs to be processed
  3. 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.