Skip to main content
Use Vercel Log Drains to forward server-side request logs directly to Siteline. No code changes required — configuration is done entirely through the Vercel dashboard. Log drains run outside your application’s request path, so there is zero impact on site performance.

Prerequisites

Log Drains are available on Vercel’s Pro and Enterprise plans. See Vercel Drains pricing for details.

Setup

1

Open Log Drains settings

In the Vercel Dashboard, navigate to your project’s Settings > Log Drains and click Add Log Drain.
2

Select drain type

Choose Custom HTTP Endpoint as the drain type.Add drain
3

Select data sources

Select Logs as the data to drain.Select logs
4

Configure the drain

Fill in the following fields:
  • Drain Name: Siteline Agent Analytics
  • Projects: Select your website project
  • Sources: Select all except Builds
  • Environment: Production
  • Sampling Rate: 100%
5

Set the endpoint URL

Enter the following URL, replacing the placeholder with your Siteline website key:
https://api.siteline.ai/v1/intake/vercel-log-drain?websiteKey=YOUR_WEBSITE_KEY
6

Save

Click Create Drain to activate. Vercel will begin forwarding logs immediately.

How it works

Vercel Log Drains stream server-side request logs to an external HTTP endpoint in real time:
  1. AI agents, bots or humans make requests to your Vercel-hosted site
  2. Vercel processes the request and generates a log entry
  3. The log entry is forwarded to the Siteline intake endpoint in the background
  4. Siteline identifies AI agent visits and human referral traffic and surfaces it in your Agent Analytics dashboard
Your website’s response time is unaffected — log drains operate asynchronously after the response is sent.

Endpoint parameters

websiteKey
string
required
Your Siteline website key, passed as a query parameter in the endpoint URL.

Troubleshooting

Verify the drain is active in Settings > Log Drains. Check that the endpoint URL includes your website key and that the drain status shows Active.
Ensure Sampling Rate is set to 100% and that Builds is the only source excluded.
Navigate to Agent Analytics in your Siteline workspace and click Manage Configuration to view or regenerate your key.
In Settings > Log Drains, delete the existing drain and create a new one with the updated URL.
Need help? Book a setup call and we’ll walk you through it.