detectors
Retrieve OpenSearch Security Analytics detection rules from Wazuh SIEM, listing all or fetching by ID.
Instructions
List or fetch OpenSearch Security Analytics detectors.
Detection in Wazuh 5 lives in the indexer, not in the Engine. These detectors are what produces the documents in wazuh-findings-v5-*.
The plugin exposes no list-all endpoint, so list is implemented as
POST /_plugins/_security_analytics/detectors/_search with match_all. Detector
documents are nested under the detector path, which matters if you search
them by name.
Args: action: "list" for all detectors, "get" for a single one by id. detector_id: Required when action is "get". size: Maximum number of detectors to return for "list". Defaults to 50.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| action | No | list | |
| detector_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |