Export Detection
export_detectionExport a detection rule as raw Splunk, KQL, or Sigma query text, or retrieve the full detection object as JSON.
Instructions
Export one detection rule in a specific format. format=spl|kql|sigma returns the raw query text for that flavor; format=json returns the full detection object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | spl, kql, sigma, or json | |
| detection_id | Yes | Detection ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | ||
| content | No | Rule text for spl/kql/sigma. For format=json the detection object is returned directly instead. | |
| available | No | ||
| detection_id | No |