Skip to content
Software capabilities

Vercel capability

Query Vercel runtime logs

Use vercel logs to query request and function output from the terminal. Use the Logs tab when you need to inspect related messages for a single request.

Documentation reviewed

Ways to do it

CLI

vercel logs --deployment <deployment>

Query runtime log entries for a deployment. Use --since to set a time window or --json to process the result in another script.

Requirements
Vercel CLI with access to the project and deployment. The query syntax described here uses CLI version 64.0.0 or later.
Limitations
Lookback and filters depend on the plan. In current CLI versions, --follow is deprecated and returns query results.

Example

vercel logs --deployment "$DEPLOYMENT_ID" --since 1h --json
Read source: Vercel CLI logs

Interface

Vercel project → Logs

Filter runtime logs by route, deployment, or request fields and open a matching request to inspect related lines.

Requirements
Access to the Vercel project’s Logs tab.
Limitations
Retention depends on the plan. Entries outside the plan’s window may no longer be visible.
Read source: Vercel runtime logs