![](/_next/image?url=https%3A%2F%2Fvercel.com%2Fapi%2Fv1%2Fintegrations%2Fassets%2Foac_yEwf1AmqJMbRs2rkmnePdNK3%2Fimages%2F2b5758823e4898afd30d24ed8b75d7ca2467f51c.png&w=3840&q=75)
![](/_next/image?url=https%3A%2F%2Fvercel.com%2Fapi%2Fv1%2Fintegrations%2Fassets%2Foac_yEwf1AmqJMbRs2rkmnePdNK3%2Fimages%2F8a38188e531cedfb6c441bcc978073b84fa70a6b.png&w=3840&q=75)
![](/_next/image?url=https%3A%2F%2Fvercel.com%2Fapi%2Fv1%2Fintegrations%2Fassets%2Foac_yEwf1AmqJMbRs2rkmnePdNK3%2Fimages%2F9149a0396fa041b081c3b1247210fb92b42eb399.png&w=3840&q=75)
![](/_next/image?url=https%3A%2F%2Fvercel.com%2Fapi%2Fv1%2Fintegrations%2Fassets%2Foac_yEwf1AmqJMbRs2rkmnePdNK3%2Fimages%2F24c27b456bea4ae7e36f4a2e578544b1c099880a.png&w=3840&q=75)
![](/_next/image?url=https%3A%2F%2Fvercel.com%2Fapi%2Fv1%2Fintegrations%2Fassets%2Foac_yEwf1AmqJMbRs2rkmnePdNK3%2Fimages%2F984d622e4e79fb596a8b57b97b5d03b71f401fcc.png&w=3840&q=75)
Overview
🚨 After install click Configure
⤴️ to add a log drain. 🚨
Add log and app performance management to your Vercel project with Logflare. This integration works on top of Vercel’s log drains to make it easy for you to get your logs into your Logflare account.
Logflare’s pricing structure includes 12.9M free log events per month and expands on what’s available in Vercel. Features include:
- Static asset logs
- Structured log messages, parsed console log lines, and parsed lambda report data
- Auto-parse stringified JSON from lambda message to JSON object
- One-click to your 5XX’s and slow requests
Read the integration guide or copy the Data Studio report.
Instructions
FAQ
Where are my console logs?
Vercel wraps all your console logs in the context of the request. They're buried in the message
in your log event metadata. This is the stdout dump from your lambda runs. AWS gives us some metadata about the request in the report
section along with the stdout string.
We parse this string for standard console logs so you can search for -m.parsedLambdaMessage.lines.level:NULL
. This gives us all console log levels which are not NULL.
How do I find slow lambda responses?
Simply search your logs for m.parsedLambdaMessage.report.duration_ms:>2500
. This will return all lambda runs which took longer than 2.5 seconds to return.
How do I find my errors?
Search for m.proxy.statusCode:>=500
. There are two statusCode
fields in the payload. m.proxy.statusCode
is the HTTP status code returned to the end user. m.statusCode
is the lambda status returned by AWS.
This integration offers additional features for Pro and Enterprise plans.