Query Neon backend logs Neon has launched `neon logs` in beta, a CLI command that lets developers query backend logs for Neon Functions and Object Storage on a branch, with filters for source, severity, and message text. The same log stream is also available through the Neon MCP server, the Logs API, @neon/sdk, and raw Loki endpoints. The feature is part of the Neon backend beta, which includes serverless Node.js compute and S3-compatible object storage, and is designed to simplify debugging across the stack. We keep expanding our backend https://neon.com/blog/neon-backend-is-beta observability. The most recent addition: you can now query backend logs outside the Console neon logs reads what Neon Functions and Object Storage emit on a branch, with filters for source, severity, and message text. The same log stream is also available through the Neon MCP server https://neon.com/docs/ai/neon-mcp-server , the Logs API https://opentelemetry.io/docs/specs/otel/logs/api/ , @neon/sdk https://neon.com/docs/reference/sdk , and raw Loki https://grafana.com/docs/loki/latest/ endpoints. A quick recap: Functions and Object Storage neon logs is in beta, and it currently covers Neon Functions and Object Storage on a branch. If you haven’t been following the progress of the Neon backend beta https://neon.com/blog/neon-backend-is-beta , these are the newer primitives sitting next to Lakebase Postgres https://neon.com/docs/postgres/overview the Neon database : Neon Functions https://neon.com/docs/compute/functions/overview are serverless Node.js compute you deploy onto your Neon branch, so your backend code runs next to your database. They’re long-running enough for streaming agents and realtime work. Neon Object Storage https://neon.com/docs/storage/overview is S3-compatible object storage built into a Neon branch, so you can deploy buckets that branch with your data. Point a standard S3 SDK or tool at your branch endpoint, authenticate with a Neon credential, and you’re done. Logs coming soon for Postgres compute, Managed Better Auth, and AI Gateway These don’t show up in neon logs yet - working on it. Inspect Functions and Object Storage logs from the CLI The Neon Console already had a Logs tab for Functions https://neon.com/docs/compute/functions/logs and Object Storage https://neon.com/docs/storage/logs . What’s new is a branch-scoped CLI surface for the same log stream. That matters when you’re debugging across the stack. A failed upload and a function error often show up in different places. With neon logs , you query them the same way, from the same branch context the rest of the CLI already uses. There’s three key subcommands: neon logs query : returns log records over a time window defaults to the last hour, newest first neon logs fields : lists the fields a branch reports for filtering neon logs field-values