﻿---
title: stack kb elastic-agents get-fleet-agent-status-data cli command
description: Get incoming agent data Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4116/reference/elastic-cli/cli/stack/kb/elastic-agents/get-fleet-agent-status-data
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb elastic-agents get-fleet-agent-status-data cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb elastic-agents get-fleet-agent-status-data \
  --agents-ids <agents-ids> \
  [options]
```

Get incoming agent data
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--agents-ids string[] required">
    Agent IDs to check data for, as an array or comma-separated string
    **Repeatable:** pass `--agents-ids` multiple times to supply more than one value
  </definition>
  <definition term="--pkg-name string">
    Filter by integration package name
  </definition>
  <definition term="--pkg-version string">
    Filter by integration package version
  </definition>
  <definition term="--preview-data">
    When true, return a preview of the ingested data
  </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>