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
  • URL: https://api.volcano.dev/projects/{id}/logs/search
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

idstring uuid required

Project ID

Request body

qstring

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_timestring date-time

Start time.

end_timestring date-time

End time.

limitinteger

Maximum number of records to return.

cursorstring

Opaque pagination cursor from the previous response's next_cursor.

Response

Successful response

limitinteger required

Number of items requested per page.

has_moreboolean 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_cursorstring

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

    • ○

      the endpoint scheme security ProjectAccessToken was added to the API

    • ○

      added the new optional request property /////

    • ▲

      added the new path request parameter id

    • ▲

      added the new required request property

    • ▲

      the request's body type changed from no type to object

    • ▲

      the response's body type changed from no type to object for status

    • ▲

      the response's body type changed from no type to object for status

    • ▲

      the response's body type changed from no type to object for status

    • ▲

      the response's body type changed from no type to object for status

    • ▲

      the response's body type changed from no type to object for status

    • ○

      added the new optional request property

    • ○

      added the new optional request property

    • ○

      added the new optional request property

    • ○

      added the new optional request property

    • ○

      added the new optional request property

    • ○

      added the optional property to the response with the status

    • ○

      added the optional property to the response with the status

    • ○

      added the optional property to the response with the status

    • ○

      added the optional property to the response with the status

    • ○

      added the optional property to the response with the status

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status