Preview rule alerts generated on specified time range
Changed onSpaces method and path for this operation:
<div><span class="operation-verb post">post</span> <span class="operation-path">/s/{space_id}/api/detection_engine/rules/preview</span></div>Refer to Spaces for more information.
Simulates a detection rule using the same rule type and query logic as a persisted rule, over a short time window, without persisting a rule or writing alerts. Use the response to validate queries, see sample matching documents, and inspect execution logs. Pair invocationCount and timeframeEnd to cap run time.
Request
- Base URLhttps://localhost:5601
- URLhttps://localhost:5601/api/detection_engine/rules/preview
- Auth
- API key in header Authorization
- or HTTP basic
Query parameters
Enables logging and returning in response ES queries, performed during rule execution
Request body
Example request
{
"actions": [
{
"frequency": {
"throttle": "1h"
}
}
],
"description": "Detects anomalous Windows process creation events.",
"name": "Anomalous Windows Process Creation",
"related_integrations": [
{
"integration": "activitylogs",
"package": "azure",
"version": "~1.1.6"
}
],
"response_actions": [
{
"params": {
"config": {
"linux": {
"timeout": 60
},
"macos": {
"timeout": 60
},
"windows": {
"timeout": 60
}
}
}
}
],
"throttle": "1h"
}Response
Successful response
Changes
- breaking
removed
subschema #1subschema #2subschema #3subschema #4subschema #5subschema #6subschema #7subschema #8from the request bodyanyOflist - info
added
subschema #1subschema #2subschema #3subschema #4subschema #5subschema #6subschema #7subschema #8to the request bodyanyOflist
- breaking
- breaking
removed
subschema #1subschema #2subschema #3subschema #4subschema #5subschema #6subschema #7subschema #8from the request bodyanyOflist - info
added
subschema #1subschema #2subschema #3subschema #4subschema #5subschema #6subschema #7subschema #8to the request bodyanyOflist
- breaking