Vercel Drains
Bring Vercel logs into RawTree using Vercel Drains.
How it works
This guide uses the service insert API at https://api.rawtree.com for
RawTree Cloud and RawTree BYOC.
Vercel Drains forward project observability data to a custom HTTPS endpoint with POST requests.
The service receives those events through the table ingest API and writes them to RawTree.
Vercel can send events directly to the service HTTP API without a connector or middleware.
Features
- Direct ingest from Vercel to RawTree
- No connector, agent, or proxy required
- Works with Vercel custom HTTPS drains
- Supports real-time event ingestion
- Compatible with the service HTTP ingest API
- Query Vercel events immediately after they arrive
Quick Start
In Vercel, create a new Drain and choose a custom HTTPS endpoint. Use the URL below with your table name. You do not need to create the table manually.
https://api.rawtree.com/v1/tables/<your_table_name>Add these headers:
Content-Type: application/json
Authorization: Bearer <your_api_key>Query your data
Use the rtree CLI, Query API, or dashboard to query your data as it gets ingested.
SELECT *
FROM <your_table_name>
ORDER BY timestamp DESC
LIMIT 100