Actions15
- Active Response Actions
- Agent Actions
- Decoder Actions
- Indexer Actions
- Rule Actions
- Security Event Actions
- Vulnerability Actions
Rule → Get
AI-generatedSummary
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.