latestOpenAPI 3.0.02026-08-0819201.1 MB

411f9f98c01e

logs

Lists all logs with the specified Workspace Id

You need workspaces.logs.read_all permission to access this resource

get/logs

Query parameters

workspace_idstring required
Example:workspace_id

An Id of the Workspace

flow_ids[]string[]

An Id of the FLow

[
  "flow_id"
]
fromstring date-time
Example:2020-01-12T14:50:42.215Z

Start Date of the period. Format – ISO 8601

tostring date-time
Example:2020-01-14T15:00:45.000Z

End Date of the period. Format – ISO 8601

searchstring
Example:error

String to search in logs (searching string is wrapped by tag)

offsetinteger

Number of items to skip from the beginning

limitinteger

Number of items to return

levels[]integer[]

The logs level (1 - None, 10 - trace, 20 - debug, 30 - info, 40 - warn, 50 - error, 60 - fatal). Log level None means default log level when it’s not passed.

[
  30
]
container_idstring
Example:c349d49c-834b-47d2-8183-5bcd015f6229

Container identifier

Response

OK

totalinteger required

Total number of Logs

Example response

{
  "total": 2645,
  "hits": [
    {
      "id": "12621fe1-59c6-11ec-a480-42010a1c0fcc",
      "workspace_id": "5b4f337bff4304610483ba67",
      "flow_id": "5b4f337bff4304610483ba67",
      "user_id": "5b4f337bff4304610483ba67",
      "component_id": "5b4f337bff4304610483ba67",
      "container_id": "c349d49c-834b-47d2-8183-5bcd015f6229",
      "step_id": "step_1",
      "exec_id": "fa21c1aba6be4c7f9c55e5f84e75911c",
      "thread_id": "fbb15272-250f-4b01-bfb4-d87e2403517e",
      "method": "execute",
      "api_username": "task-5b4f337bff4304610483ba67",
      "component_name": "Node.js_Code",
      "timestamp": "2021-12-10T14:32:58.324Z",
      "level": 30,
      "message": "Disconnecting..."
    }
  ]
}