---
type: api
title: Get execution logs
description: Retrieve paginated logs for a workflow execution. Optionally filter by a specific step execution.<br/><br/>[Required authorization] Route required privileges: workflowsManagement:read AND workflowsManagement:readExecution. Extended privileges (optional, expand functionality when granted): workflowsManagement:managed:readExecution.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v0/operation/operation-get-workflows-executions-executionid-logs
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v0/operation/operation-get-workflows-executions-executionid-logs
products:
  - Kibana
---

# Get execution logs

Availability: 9.4+

- Server: `https://{kibana_url}`

## Paths

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

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v0/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v0/authentication#basicauth)

#### Path Parameters

- `executionId` (string · max: 255)
  Workflow execution ID

## Description

Retrieve paginated logs for a workflow execution. Optionally filter by a specific step execution.<br/><br/>[Required authorization] Route required privileges: workflowsManagement:read AND workflowsManagement:readExecution. Extended privileges (optional, expand functionality when granted): workflowsManagement:managed:readExecution.

## Query String Parameters

- `stepExecutionId` (string)
  Filter logs by a specific step execution ID.
- `size` (number · min: 1 · max: 100 · default: 100)
  Number of log entries per page.
- `page` (number · min: 1 · default: 1)
  Page number.
- `sortField` (string)
  Field to sort by.
- `sortOrder` (enum)
  Sort order.
  Values: `asc`, `desc`

## Response

Indicates a successful response

## Code Examples

#### Console

```console
GET kbn://api/workflows/executions/{executionId}/logs?size=100&page=1
```

#### curl

```curl
curl \
  -X GET "${KIBANA_URL}/api/workflows/executions/{executionId}/logs?size=100&page=1" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response Examples

#### Get execution logs response

Example response returning paginated execution logs

```json
{
  "logs": [
    {
      "additionalData": {
        "executionId": "exec-a1b2c3d4-e5f6-7890",
        "workflowId": "workflow-a1b2c3d4-e5f6-7890-abcd-ef1234567890"
      },
      "connectorType": "console",
      "duration": 150,
      "id": "log-001",
      "level": "info",
      "message": "Workflow execution started",
      "stepId": "hello_world_step",
      "stepName": "Hello World",
      "timestamp": "2025-11-20T12:00:01.000Z"
    },
    {
      "additionalData": {
        "executionId": "exec-a1b2c3d4-e5f6-7890",
        "workflowId": "workflow-a1b2c3d4-e5f6-7890-abcd-ef1234567890"
      },
      "connectorType": "console",
      "duration": 200,
      "id": "log-002",
      "level": "info",
      "message": "Step completed successfully",
      "stepId": "hello_world_step",
      "stepName": "Hello World",
      "timestamp": "2025-11-20T12:00:02.000Z"
    }
  ],
  "page": 1,
  "size": 100,
  "total": 2
}
```

