﻿---
title: stack kb data-streams get-fleet-data-streams-data cli command
description: Check if data streams have data Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4120/reference/elastic-cli/cli/stack/kb/data-streams/get-fleet-data-streams-data
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb data-streams get-fleet-data-streams-data cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb data-streams get-fleet-data-streams-data \
  --data-streams <data-streams> \
  --start <start> \
  [options]
```

Check if data streams have data
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--data-streams string required">
    A comma-separated list of data stream index patterns to check. Each pattern must be of the form `logs-<dataset>-*` or `metrics-<dataset>-*`.
  </definition>
  <definition term="--start string required">
    An ISO 8601 timestamp. Only documents with an `@timestamp` at or after this time are considered.
  </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>