Wazuh icon

Wazuh

Work with the Wazuh Server API and Wazuh Indexer API

Actions15

Rule → Get

AI-generated

Summary

Retrieve the content of a specific Wazuh rule file by specifying its XML filename and optional relative directory.

Inputs

  • Filename (required) — The XML filename of the Wazuh rule file to retrieve, e.g. '0010-rules_config.xml'.
  • Relative Directory — The relative directory path containing the rule file, defaulting to 'ruleset/rules'.

Output shape

a JSON object representing the content of the retrieved rule file along with metadata about the retrieval operation

Throws an error if the specified rule file is not found. The output includes the filename, relative directory (if provided), rule content, and metadata such as message, total retrieved items, and failed items information.

Links

Discussion