Stream project logs
Changed onLive-tail project logs as Server-Sent Events. The request body uses the resource selector plus q, start_time, and limit, including runtime logs and function/frontend deployment logs selected with resource.deployments. Deployment logs are not supported for databases. Database logs are a SUPERAGENT feature; resource.type=database from a HOBBY project owner returns 403. The q field uses the same syntax as search and activity requests. Do not send cursor or end_time; use /logs/search for range backfills. Explicit historical start_time values are limited to the plan's retention window (HOBBY: 1 day, SUPERAGENT: 30 days). Resume with Last-Event-ID or the last_event_id query parameter. The cursor is bound to the request body: the resource selector and every filter must match the original request when reconnecting, otherwise the request is rejected with 400.
This is a live tail, not a gap-free backfill. On connect or reconnect the server delivers at most limit of the most recent matching events from the cursor position and then follows new events; events older than that window are not replayed. Use /logs/search to backfill a time range.
Request
- Base URLhttps://api.volcano.dev
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
Project ID
Query parameters
Opaque stream cursor fallback when setting Last-Event-ID is not practical.
Headers
Opaque stream cursor from the most recent SSE id field.
Request body
Stream request for live project logs. Pagination cursors and fixed end times are not supported.
Resource selectors for project log reads.
Optional log query using the same syntax as search and activity requests.
Start time.
Maximum number of records to deliver on connect or reconnect before following new events.
Response
Server-Sent Events stream. log events contain a JSON LogSearchEvent; warning events contain a JSON object with an error field.
Changes
- info
the endpoint scheme security
ProjectAccessTokenwas added to the API - info
added the new optional request property
resource/oneOf[#/components/schemas/LogFunctionRequestResource]/kind
- info
- breaking
added the new path request parameter
id
20 more changes in this revision
- breaking