Logs

Search project logs

Changed on

Search or filter logs for one resource type in the project. Set resource.type to function, frontend, or database. Add resource.ids to filter to one or more resources, and add resource.deployments.ids to read deployment logs instead of runtime logs for functions and frontends. Deployment logs are not supported for databases. Database logs are a SUPERAGENT feature; requests for resource.type=database from a HOBBY project owner return 403. Log history (runtime and deployment) is limited to the plan's retention window (HOBBY: 1 day, SUPERAGENT: 30 days); older time ranges are clamped to that window.

post/projects/{id}/logs/search

Request

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

Path parameters

id, string uuid required

Project ID

Request body

LogSearchRequest required

Search request for project logs.

resource, union required

Resource selectors for project log reads.

q, string

Optional log query. Supports quoted text, implicit AND, AND/OR/NOT, parentheses, and fields such as level, region, invocation.id, resource.id, resource.name, function, frontend, database, and body.

start_time, string date-time

Start time.

end_time, string date-time

End time.

limit, integer

Maximum number of records to return.

cursor, string

Opaque pagination cursor from the previous response's next_cursor.

Response

Successful response

LogSearchResponse required

Paginated project runtime log search response.

data, LogSearchEvent[] required

Array of log events sorted by timestamp, newest first.

limit, integer required

Number of items requested per page.

has_more, boolean required

Whether the search may have more matching log events. A page can hold fewer than limit events, or none, while this is true; keep paging until it is false.

next_cursor, string

Opaque cursor for the next page, present while has_more is true. Send this value as cursor on the next request, even when data is empty.

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

    24 more changes in this revision