﻿---
title: stack kb workflows get-workflows-workflow-executions cli command
description: Search workflow executions Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4097/reference/elastic-cli/cli/stack/kb/workflows/get-workflows-workflow-executions
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb workflows get-workflows-workflow-executions cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb workflows get-workflows-workflow-executions [options]
```

Search workflow executions
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--kql string">
    KQL query string to filter executions.
  </definition>
  <definition term="--statuses string[]">
    Filter by execution status.
    **Repeatable:** pass `--statuses` multiple times to supply more than one value
  </definition>
  <definition term="--execution-types string[]">
    Filter by execution type.
    **Repeatable:** pass `--execution-types` multiple times to supply more than one value
  </definition>
  <definition term="--executed-by string[]">
    Filter by the user who triggered the execution.
    **Repeatable:** pass `--executed-by` multiple times to supply more than one value
  </definition>
  <definition term="--concurrency-group-key string">
    Filter by evaluated concurrency group key.
  </definition>
  <definition term="--started-after string">
    Datemath lower bound for filtering executions by startedAt.
  </definition>
  <definition term="--started-before string">
    Datemath upper bound for filtering executions by startedAt.
  </definition>
  <definition term="--finished-after string">
    Datemath lower bound for filtering executions by finishedAt.
  </definition>
  <definition term="--finished-before string">
    Datemath upper bound for filtering executions by finishedAt.
  </definition>
  <definition term="--collapse enum">
    Field to collapse execution results by.
    **Values:** concurrencyGroupKey, status, executedBy, triggeredBy
  </definition>
  <definition term="--sort-field enum">
    Field to sort by. One of: startedAt, duration, workflowId, triggeredBy.
    **Values:** startedAt, duration, workflowId, triggeredBy
  </definition>
  <definition term="--sort-order enum">
    Sort direction.
    **Values:** asc, desc
  </definition>
  <definition term="--page number">
    Page number.
  </definition>
  <definition term="--size number">
    Number of results to return.
  </definition>
  <definition term="--track-total-hits">
    Whether to track total hit count.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>