Setup guide
Vercel
Point a Vercel log drain at your source and every function, edge and build line arrives within seconds.
Steps
- In Logyak, add a Vercel source. Copy the drain URL it shows (it holds the source's token):
https://logyak.com/api/ingest/vercel/<token>. - In Vercel, open Team Settings → Drains (or a project's Settings → Drains), click Add Drain, choose Logs and a custom endpoint, and paste the URL. Pick JSON or NDJSON, the sources (static, functions, edge, build, external) and the projects.
- Vercel shows a verification value and checks that the endpoint answers with it in an
x-vercel-verifyheader. Paste the value into Vercel verification code on the source page and save, then let Vercel verify. - Set a signing secret on the drain and paste the same secret into Drain secret on the source page. From then on, a batch whose
x-vercel-signature(an HMAC-SHA1 of the body) does not match is refused.
What you get
Function and build output as app lines, edge requests as HTTP lines (method, path, status, region, cache), the project name as the service, and Vercel's request id, so request:<id> follows one request.