Wazuh icon

Wazuh

Work with the Wazuh Server API and Wazuh Indexer API

Actions15

Decoder → Run Command

AI-generated

Summary

Sends a Wazuh Active Response command to the selected agents, or to all agents when the Agents field is empty. The request can include command arguments and alert data, and can set whether to wait for completion.

Inputs

  • Command (required) — Active Response command name, such as !firewall-drop.
  • Agents — Comma-separated agent IDs. Leave blank to target all agents.
  • Arguments — Comma-separated arguments passed to the command.
  • Alert Data — JSON object sent as alert.data; defaults to {}.
  • Wait for Complete — Controls the Wazuh API wait_for_complete parameter; defaults to false.

Output shape

A single response body object per input item.

The node makes a PUT request to the Wazuh Manager API /active-response endpoint. Empty arguments and alert data are omitted from the request payload. Invalid Alert Data JSON or a non-object value causes an error. With Continue On Fail enabled, errors are returned as { "error": "..." } for the affected item.

Links

Discussion