Logs

Stream project logs

Changed on

Live-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.

post/projects/{id}/logs/stream

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required

Project ID

Query parameters

last_event_id, string

Opaque stream cursor fallback when setting Last-Event-ID is not practical.

Headers

Last-Event-ID, string

Opaque stream cursor from the most recent SSE id field.

Request body

LogStreamRequest required

Stream request for live project logs. Pagination cursors and fixed end times are not supported.

resource, union required

Resource selectors for project log reads.

q, string

Optional log query using the same syntax as search and activity requests.

start_time, string date-time

Start time.

limit, integer

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 ProjectAccessToken was added to the API

    • info

      added the new optional request property resource/oneOf[#/components/schemas/LogFunctionRequestResource]/kind

    • breaking

      added the new path request parameter id

    20 more changes in this revision