---
title: "Get execution logs"
method: GET
path: "/api/workflows/executions/{executionId}/logs"
tags: ["workflows"]
---

# Get execution logs

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

**Spaces method and path for this operation:**

<div><span class="operation-verb get">get</span>&nbsp;<span class="operation-path">/s/{space_id}/api/workflows/executions/{executionId}/logs</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Retrieve paginated logs for a workflow execution. Optionally filter by a specific step execution.<br/><br/>[Required authorization] Route required privileges: workflowsManagement:readExecution OR workflowsManagement:managed:readExecution.

## Path parameters

- `executionId` string, required

## Query parameters

- `stepExecutionId` string
- `size` number
- `page` number
- `sortField` string
- `sortOrder` 'asc' | 'desc'

## Response `200`

Indicates a successful response

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
