GET /api/workflows/executions/{executionId}/logs

Spaces method and path for this operation:

get /s/{space_id}/api/workflows/executions/{executionId}/logs

Refer to Spaces for more information.

Retrieve paginated logs for a workflow execution. Optionally filter by a specific step execution.

[Required authorization] Route required privileges: workflowsManagement:readExecution.

Path parameters

  • executionId string Required

    Workflow execution ID

Query parameters

  • stepExecutionId string

    Filter logs by a specific step execution ID.

  • size number

    Number of log entries per page.

    Minimum value is 1, maximum value is 100. Default value is 100.

  • page number

    Page number.

    Minimum value is 1. Default value is 1.

  • sortField string

    Field to sort by.

  • sortOrder string

    Sort order.

    Values are asc or desc.

Responses

  • 200 application/json

    Indicates a successful response

GET /api/workflows/executions/{executionId}/logs
curl \
  -X GET "${KIBANA_URL}/api/workflows/executions/{executionId}/logs?size=100&page=1" \
  -H "Authorization: ApiKey ${API_KEY}"
GET kbn://api/workflows/executions/{executionId}/logs?size=100&page=1
Response examples (200)
Example response returning paginated execution logs
{
  "logs": [
    {
      "id": "log-001",
      "level": "info",
      "stepId": "hello_world_step",
      "message": "Workflow execution started",
      "duration": 150,
      "stepName": "Hello World",
      "timestamp": "2025-11-20T12:00:01.000Z",
      "connectorType": "console",
      "additionalData": {
        "workflowId": "workflow-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "executionId": "exec-a1b2c3d4-e5f6-7890"
      }
    },
    {
      "id": "log-002",
      "level": "info",
      "stepId": "hello_world_step",
      "message": "Step completed successfully",
      "duration": 200,
      "stepName": "Hello World",
      "timestamp": "2025-11-20T12:00:02.000Z",
      "connectorType": "console",
      "additionalData": {
        "workflowId": "workflow-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "executionId": "exec-a1b2c3d4-e5f6-7890"
      }
    }
  ],
  "page": 1,
  "size": 100,
  "total": 2
}