---
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/4493/api/doc/kibana/v0/operation/operation-get-workflows-executions-executionid-logs
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-get-workflows-executions-executionid-logs
products:
  - Kibana
---

# Get execution logs

Availability: Generally available since 9.4

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

## Paths

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

#### Path parameters

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

## Description

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

## Required authorization

- Privileges: `workflowsManagement:read` and `workflowsManagement:readExecution. Extended privileges (optional, expand functionality when granted): workflowsManagement:managed:readExecution`

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Query string parameters

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

## Response

Indicates a successful response

`application/json`

## 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
}
```

