﻿---
title: stack kb alerting post-alerting-rules-backfill-find cli command
description: Find backfills for rules Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4089/reference/elastic-cli/cli/stack/kb/alerting/post-alerting-rules-backfill-find
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb alerting post-alerting-rules-backfill-find cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb alerting post-alerting-rules-backfill-find [options]
```

Find backfills for rules
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--end string">
    The end date for filtering backfills.
  </definition>
  <definition term="--page number">
    The page number to return.
  </definition>
  <definition term="--per-page number">
    The number of backfills to return per page.
  </definition>
  <definition term="--rule-ids string">
    A comma-separated list of rule identifiers.
  </definition>
  <definition term="--initiator enum">
    The initiator of the backfill, either `user` for manual backfills or `system` for automatic gap fills.
    **Values:** user, system
  </definition>
  <definition term="--start string">
    The start date for filtering backfills.
  </definition>
  <definition term="--sort-field enum">
    The field to sort backfills by.
    **Values:** createdAt, start
  </definition>
  <definition term="--sort-order enum">
    The sort order.
    **Values:** asc, desc
  </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>