fix#2061-detector-API-second-try (#2992)

Signed-off-by: cwillum <cwmmoore@amazon.com>
This commit is contained in:
Chris Moore 2023-02-21 09:38:55 -08:00 committed by GitHub
parent 04c214a828
commit 07ff1abad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 294 additions and 160 deletions

View File

@ -7,9 +7,9 @@ nav_order: 35
# Detector APIs # Detector APIs
The following APIs can be used for a number of tasks related to detectors, from creating detectors to updating and searching for detectors. The following APIs can be used for a number of tasks related to detectors, from creating detectors to updating and searching for detectors. Many API calls use the detector ID in the request, which can be retrieved using the [Search Detector API](#search-detector-api).
## Create Detector ## Create Detector API
Creates a new detector. Creates a new detector.
@ -17,50 +17,48 @@ Creates a new detector.
POST _plugins/_security_analytics/detectors POST _plugins/_security_analytics/detectors
``` ```
### Parameters ### Request fields
You can specify the following parameters when creating a detector. You can specify the following fields when creating a detector.
Parameter | Type | Description Field | Type | Description
:--- | :--- |:--- |:--- | :--- | :--- |:--- |
`enabled` | Boolean | Enables the ability to add detectors through the API. `enabled` | Boolean | Sets the detector as either active (true) or inactive (false). Default is `true` when a new detector is created. Required.
`type` | String | The type is specified as "detector". `name` | String | Name of the detector. Name should only consist of upper and lowercase letters, numbers 0-9, hyphens, spaces, and underscores. Use between 5 and 50 characters. Required.
`name` | String | Name of the detector. `detector_type` | String | The log type that defines the detector. Options are `linux`, `network` ,`windows`, `ad_ldap`, `apache_access`, `cloudtrail`, `dns`, and `s3`. Required.
`detector_type` | Object | The log type that defines the detector. `schedule` | Object | The schedule that determines how often the detector runs. For information on specifying fixed intervals in the API, see [Cron expression reference]({{site.url}}{{site.baseurl}}/monitoring-plugins/alerting/cron/).
`schedule`| Object | the schedule that determines how often the detector runs. `schedule.period` | Object | Details for the frequency of the schedule.
`schedule`<br>&nbsp;&nbsp;&nbsp;&nbsp;`period` | Object | the frequency at which the detector runs in repetition. `schedule.period.interval` | Integer | The interval at which the detector runs.
`schedule`<br>&nbsp;&nbsp;&nbsp;&nbsp;`period`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`interval` | Integer | The duration of the period expressed as a number. `schedule.period.unit` | String | The interval's unit of time.
`schedule`<br>&nbsp;&nbsp;&nbsp;&nbsp;`period`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`unit` | String | The unit of measure for the interval. `inputs` | Object | Detector inputs.
`inputs` | Object | In process `inputs.detector_input` | Array | An array that contains the index and definition used to create the detector. Currently, only one log data source is allowed for the detector.
`inputs`<br>&nbsp;&nbsp;&nbsp;&nbsp;`detector_inputs` | Object | In process `inputs.detector_input.description` | String | Description of the detector. Optional.
`inputs`<br>&nbsp;&nbsp;&nbsp;&nbsp;`detector_inputs`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`description` | String | In process `inputs.detector_input.custom_rules` | Array | Detector inputs for custom rules. At least one rule must be specified for a detector. Optional if pre-packaged rules are specified.
`inputs`<br>&nbsp;&nbsp;&nbsp;&nbsp;`detector_inputs`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`custom_rules` | Object | In process `inputs.detector_input.custom_rules.id` | String | A valid rule ID for the custom rule generated by the user. Valid rules are formatted as a globally, or, universally unique identifier (UUID) See [Universally unique identifier](https://en.wikipedia.org/wiki/Universally_unique_identifier) for more information.
`inputs`<br>&nbsp;&nbsp;&nbsp;&nbsp;`detector_inputs`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`custom_rules`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`id` | String | In process `inputs.detector_input.indices` | Array | The log data source used for the detector, which can be either an index name or index pattern. Currently, only one entry is supported with plans to support multiple indexes in a future release. Required.
`inputs`<br>&nbsp;&nbsp;&nbsp;&nbsp;`detector_inputs`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`indices` | String | In process `inputs.detector_input.pre_packaged_rules` | Array | Detector inputs for pre-packaged rules (as opposed to custom rules). At least one rule must be specified for a detector. Optional if custom rules are specified.
`inputs`<br>&nbsp;&nbsp;&nbsp;&nbsp;`detector_inputs`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`pre_packaged_rules` | Object | In process `inputs.detector_input.pre_packaged_rules.id` | String | The rule ID for pre-packaged rules. See [Search Pre-Packaged Rules]({{site.url}}{{site.baseurl}}/security-analytics/api-tools/rule-api/#search-pre-packaged-rules) for information on how to use the API to search for rules and obtain rule IDs in results.
`inputs`<br>&nbsp;&nbsp;&nbsp;&nbsp;`detector_inputs`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`pre_packaged_rules`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`id` | String | In process `triggers` | Array | Trigger settings for alerts.
`triggers` | Object | In process `triggers.ids` | Array | A list of rule IDs that become part of the trigger condition.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`ids` | String | In process `triggers.tags` | Array | Tags are specified in a security rule. Tags can then be selected and applied to the alert trigger to focus the trigger conditions for alerts. See an example of how tags are used in a Sigma rule in Sigma's [Rule Creation Guide](https://github.com/SigmaHQ/sigma/wiki/Rule-Creation-Guide#tags).
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`types` | String | In process `triggers.id` | String | The unique ID for the trigger.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`tags` | String | In process `triggers.sev_levels` | Array | Sigma rule severity levels: `informational`; `low`; `medium`; `high`; `criticial`. See [Level](https://github.com/SigmaHQ/sigma/wiki/Rule-Creation-Guide#level) in the Sigma Rule Creation Guide.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`id` | String | In process `triggers.name` | String | The name of the trigger. Name should only consist of upper and lowercase letters, numbers 0-9, hyphens, spaces, and underscores. Use between 5 and 50 characters. Required.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`sev_levels` | String | In process `triggers.severity` | Integer | Severity level for the trigger expressed as an integer: 1 = highest; 2 = high; 3 = medium; 4 = low; 5 = lowest. Trigger severity is part of the alert definition.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`name` | String | In process `triggers.actions` | Object | Actions send notifications when trigger conditions are met. Optional, as a notification message is not required as part of an alert.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`severity` | Integer | In process `triggers.actions.id` | String | Unique ID for the action. User generated.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`actions` | Integer | In process `triggers.actions.destination_id` | String | Unique ID for the notification destination. User generated.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`actions`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`id` | Integer | In process `triggers.actions.subject_template` | Object | Contains the information for the subject field of the notification message. Optional.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`actions`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`destination_id` | Integer | In process `triggers.actions.subject_template.source` | String | The subject for the notification message.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`actions`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`subject_template` | Object | In process `triggers.actions.subject_template.lang` | String | The scripting language used to define the subject. Must be Mustache. See the [Mustache Manual](https://mustache.github.io/mustache.5.html) for more information about templates.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`actions`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`subject_template`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`source` | String | In process `triggers.actions.name` | String | Name for the trigger alert. Name should only consist of upper and lowercase letters, numbers 0-9, hyphens, spaces, and underscores. Use between 5 and 50 characters.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`actions`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`subject_template`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`lang` | String | In process `triggers.actions.message_template` | String | Contains the information for the body of the notification message. Optional.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`actions`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`name` | String | In process `triggers.actions.message_template.source` | String | The body of the notification message.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`actions`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`throttle_enabled` | Boolean | In process `triggers.actions.message_template.lang` | String | The scripting language used to define the message. Must be `Mustache`.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`actions`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`message_template` | String | In process `triggers.actions.throttle_enabled` | Boolean | Enables throttling for alert notifications. Optional. Default is `false`.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`actions`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`message_template`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`source` | String | In process `triggers.actions.throttle` | Object | Throttling limits the number of notifications you receive within a given span of time.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`actions`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`message_template`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`lang` | String | In process `triggers.actions.throttle.unit` | String | Unit of time for throttling.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`actions`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`throttle` | Object | In process `triggers.actions.throttle.value` | Integer | The value for the unit of time.
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`actions`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`throttle`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`unit` | String | In process
`triggers`<br>&nbsp;&nbsp;&nbsp;&nbsp;`actions`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`throttle`<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`value` | Integer | In process
### Example request ### Example request
@ -117,8 +115,8 @@ POST _plugins/_security_analytics/detectors
"throttle_enabled": false, "throttle_enabled": false,
"message_template": { "message_template": {
"source": "Detector {{ctx.detector.name}} just entered alert status. Please investigate the issue." + "source": "Detector {{ctx.detector.name}} just entered alert status. Please investigate the issue." +
"- Trigger: {{ctx.trigger.name}}" + "- Trigger: {{ctx.trigger.name}}" +
"- Severity: {{ctx.trigger.severity}}", "- Severity: {{ctx.trigger.severity}}",
"lang": "mustache" "lang": "mustache"
}, },
"throttle": { "throttle": {
@ -135,6 +133,7 @@ POST _plugins/_security_analytics/detectors
"name": "nbReFCjlfn" "name": "nbReFCjlfn"
} }
``` ```
{% include copy-curl.html %}
### Example response ### Example response
@ -197,8 +196,8 @@ POST _plugins/_security_analytics/detectors
"throttle_enabled": false, "throttle_enabled": false,
"subject_template": { "subject_template": {
"source": "Detector {{ctx.detector.name}} just entered alert status. Please investigate the issue." + "source": "Detector {{ctx.detector.name}} just entered alert status. Please investigate the issue." +
"- Trigger: {{ctx.trigger.name}}" + "- Trigger: {{ctx.trigger.name}}" +
"- Severity: {{ctx.trigger.severity}}", "- Severity: {{ctx.trigger.severity}}",
"lang": "mustache" "lang": "mustache"
}, },
"throttle": { "throttle": {
@ -216,14 +215,33 @@ POST _plugins/_security_analytics/detectors
``` ```
--- ---
## Update Detector ## Update Detector API
The Update detector API is used for updating a detector. The Update Detector API can be used to update a detector definition. It requires the detector ID to specify the detector.
```json ```json
PUT /_plugins/_security_analytics/detectors/<detector_Id> PUT /_plugins/_security_analytics/detectors/<detector_Id>
``` ```
### Request fields
You can specify the following fields when updating a detector.
Field | Type | Description
:--- | :--- |:--- |
`detector_type` | String | The log type that defines the detector. Options are `linux`, `network` ,`windows`, `ad_ldap`, `apache_access`, `cloudtrail`, `dns`, and `s3`.
`name` | String | The name of the detector. Name should only consist of upper and lowercase letters, numbers 0-9, hyphens, spaces, and underscores. Use between 5 and 50 characters. Required.
`enabled` | Boolean | Sets the detector as either Active (true) or Inactive (false).
`schedule.period.interval` | Integer | The interval at which the detector runs.
`schedule.period.unit` | String | The interval's unit of time.
`inputs.input.description` | String | Description of the detector.
`inputs.input.indices` | Array | The log data source used for the detector. Only one source is allowed at this time.
`inputs.input.rules.id` | Array | A list of security rules for the detector definition.
`triggers.sev_levels` | Array | Sigma rule severity levels: `informational`; `low`; `medium`; `high`; `criticial`. See [Level](https://github.com/SigmaHQ/sigma/wiki/Rule-Creation-Guide#level) in the Sigma Rule Creation Guide.
`triggers.tags` | Array | Tags are specified in a security rule. Tags can then be selected and applied to the alert trigger to focus the trigger conditions for alerts. See an example of how tags are used in a Sigma rule in Sigma's [Rule Creation Guide](https://github.com/SigmaHQ/sigma/wiki/Rule-Creation-Guide#tags).
`triggers.actions` | Object | Actions send notifications when trigger conditions are met. See trigger actions for [Create Detector API]({{site.url}}{{site.baseurl}}/security-analytics/api-tools/detector-api/#create-detector-api).
### Example request ### Example request
```json ```json
@ -247,9 +265,13 @@ PUT /_plugins/_security_analytics/detectors/J1RX1IMByX0LvTiGTddR
"indices": [ "indices": [
"windows" "windows"
], ],
"rules": [ "custom_rules": [],
"pre_packaged_rules": [
{ {
"id": "46" "id": "73a883d0-0348-4be4-a8d8-51031c2564f8"
},
{
"id": "1a4bd6e3-4c6e-405d-a9a3-53a116e341d4"
} }
] ]
} }
@ -269,6 +291,7 @@ PUT /_plugins/_security_analytics/detectors/J1RX1IMByX0LvTiGTddR
] ]
} }
``` ```
{% include copy-curl.html %}
### Example response ### Example response
@ -308,72 +331,115 @@ PUT /_plugins/_security_analytics/detectors/J1RX1IMByX0LvTiGTddR
} }
``` ```
--- #### Response fields
## Delete Detector
This API is used for deleting a detector. Field | Type | Description
:--- | :--- |:--- |
`_version` | String | Version number for the update.
`detector.last_update_time` | String | Date and time of the last update.
`detector.enabled_time` | String | Date and time when the detector was last enabled.
---
## Delete Detector API
This API uses the detector ID to specify and delete a detector.
### Path and HTTP methods
```json
DELETE /_plugins/_security_analytics/detectors/IJAXz4QBrmVplM4JYxx_
```
### Example request ### Example request
```json ```json
DELETE /_plugins/_security_analytics/detectors/J1RX1IMByX0LvTiGTddR DELETE /_plugins/_security_analytics/detectors/<detector Id>
```
---
## Get Detector
The Get detector API retrieves the detector details.
### Example request
```json
GET /_plugins/_security_analytics/detectors/MFRg1IMByX0LvTiGHtcN
``` ```
{% include copy-curl.html %}
### Example response ### Example response
```json ```json
{ {
"_id": "MFRg1IMByX0LvTiGHtcN", "_id" : "IJAXz4QBrmVplM4JYxx_",
"_version": 1, "_version" : 1
"detector": {
"name": "windows_detector",
"detector_type": "windows",
"enabled": true,
"schedule": {
"period": {
"interval": 1,
"unit": "MINUTES"
}
},
"inputs": [
{
"detector_input": {
"description": "windows detector for security analytics",
"indices": [
"windows"
],
"rules": []
}
}
],
"last_update_time": "2022-10-14T02:43:11.693Z",
"enabled_time": "2022-10-14T02:43:11.693Z"
}
} }
``` ```
--- ---
## Search Detector ## Get Detector API
The Search detector API searches for detector matches by detector ID. The Get Detector API retrieves the detector details. Use the detector ID in the call to fetch detector details.
### Path and HTTP methods
```json
GET /_plugins/_security_analytics/detectors/x-dwFIYBT6_n8WeuQjo4
```
### Example request ### Example request
```json ```json
POST /_plugins/_security_analytics/detectors/_search GET /_plugins/_security_analytics/detectors/<detector Id>
```
{% include copy-curl.html %}
Body: ### Example response
```json
{
"_id" : "x-dwFIYBT6_n8WeuQjo4",
"_version" : 1,
"detector" : {
"name" : "DetectorTest1",
"detector_type" : "windows",
"enabled" : true,
"schedule" : {
"period" : {
"interval" : 1,
"unit" : "MINUTES"
}
},
"inputs" : [
{
"detector_input" : {
"description" : "Test and delete",
"indices" : [
"windows1"
],
"custom_rules" : [ ],
"pre_packaged_rules" : [
{
"id" : "847def9e-924d-4e90-b7c4-5f581395a2b4"
}
]
}
}
],
"last_update_time" : "2023-02-02T23:22:26.454Z",
"enabled_time" : "2023-02-02T23:22:26.454Z"
}
}
```
---
## Search Detector API
The Search Detector API searches for detector matches by detector ID, detector name, or detector type.
### Request fields
Field | Type | Description
:--- | :--- |:--- |
`_id` | String | Version number for the update.
`detector.name` | String | Name of the detector.
`detector_type` | String | The log type for the detector. Options are `linux`, `network` ,`windows`, `ad_ldap`, `apache_access`, `cloudtrail`, `dns`, and `s3`.
### Example request
**Detector ID**
```json
POST /_plugins/_security_analytics/detectors/_search
{ {
"query": { "query": {
"match": { "match": {
@ -382,76 +448,144 @@ Body:
} }
} }
``` ```
{% include copy-curl.html %}
**Detector name**
```json
POST /_plugins/_security_analytics/detectors/_search
{
"size": 30,
"query": {
"nested": {
"path": "detector",
"query": {
"bool": {
"must": [
{ "match": {"detector.name": "DetectorTest1"} }
]
}
}
}
}
}
```
{% include copy-curl.html %}
### Example response ### Example response
```json ```json
{ {
"took": 2, "took" : 0,
"timed_out": false, "timed_out" : false,
"_shards": { "_shards" : {
"total": 1, "total" : 1,
"successful": 1, "successful" : 1,
"skipped": 0, "skipped" : 0,
"failed": 0 "failed" : 0
},
"hits" : {
"total" : {
"value" : 1,
"relation" : "eq"
}, },
"hits": { "max_score" : 3.671739,
"total": { "hits" : [
"value": 1, {
"relation": "eq" "_index" : ".opensearch-sap-detectors-config",
}, "_id" : "x-dwFIYBT6_n8WeuQjo4",
"max_score": 1.0, "_version" : 1,
"hits": [ "_seq_no" : 76,
{ "_primary_term" : 17,
"_index": ".opensearch-detectors-config", "_score" : 3.671739,
"_id": "MFRg1IMByX0LvTiGHtcN", "_source" : {
"_version": 1, "type" : "detector",
"_seq_no": 6, "name" : "DetectorTest1",
"_primary_term": 1, "detector_type" : "windows",
"_score": 1.0, "enabled" : true,
"_source": { "enabled_time" : 1675380146454,
"type": "detector", "schedule" : {
"name": "windows_detector", "period" : {
"detector_type": "WINDOWS", "interval" : 1,
"enabled": true, "unit" : "MINUTES"
"enabled_time": 1665715391693,
"schedule": {
"period": {
"interval": 1,
"unit": "MINUTES"
}
},
"inputs": [
{
"detector_input": {
"description": "windows detector for security analytics",
"indices": [
"windows"
],
"rules": []
}
}
],
"triggers": [
{
"id": "fyAy1IMBK2A1DZyOuW_b",
"name": "test-trigger",
"types": [
"windows"
],
"sev_levels": [],
"tags": [],
"actions": []
}
],
"last_update_time": 1665715391693,
"monitor_id": [
"LlRf1IMByX0LvTiGzdeX"
]
}
} }
] },
} "inputs" : [
{
"detector_input" : {
"description" : "Test and delete",
"indices" : [
"windows1"
],
"custom_rules" : [ ],
"pre_packaged_rules" : [
{
"id" : "847def9e-924d-4e90-b7c4-5f581395a2b4"
}
]
}
}
],
"triggers" : [
{
"id" : "w-dwFIYBT6_n8WeuQToW",
"name" : "trigger 1",
"severity" : "1",
"types" : [
"windows"
],
"ids" : [
"847def9e-924d-4e90-b7c4-5f581395a2b4"
],
"sev_levels" : [
"critical"
],
"tags" : [
"attack.t1003.002"
],
"actions" : [
{
"id" : "",
"name" : "Triggered alert condition: - Severity: 1 (Highest) - Threat detector: DetectorTest1",
"destination_id" : "",
"message_template" : {
"source" : """Triggered alert condition:
Severity: 1 (Highest)
Threat detector: DetectorTest1
Description: Test and delete
Detector data sources:
windows1""",
"lang" : "mustache"
},
"throttle_enabled" : false,
"subject_template" : {
"source" : "Triggered alert condition: - Severity: 1 (Highest) - Threat detector: DetectorTest1",
"lang" : "mustache"
},
"throttle" : {
"value" : 10,
"unit" : "MINUTES"
}
}
]
}
],
"last_update_time" : 1675380146454,
"monitor_id" : [
"xOdwFIYBT6_n8WeuQToa"
],
"bucket_monitor_id_rule_id" : {
"-1" : "xOdwFIYBT6_n8WeuQToa"
},
"rule_topic_index" : ".opensearch-sap-windows-detectors-queries",
"alert_index" : ".opensearch-sap-windows-alerts",
"alert_history_index" : ".opensearch-sap-windows-alerts-history",
"alert_history_index_pattern" : "<.opensearch-sap-windows-alerts-history-{now/d}-1>",
"findings_index" : ".opensearch-sap-windows-findings",
"findings_index_pattern" : "<.opensearch-sap-windows-findings-{now/d}-1>"
}
}
]
}
} }
``` ```