forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Response Ops][Alerting] Using
alertsClient
for legacy siem notific…
…ation rule types to write default alerts-as-data docs (elastic#174553) Towards elastic/response-ops-team#164 Resolves elastic#171795 ## Summary * Switches this rule type to use `alertsClient` from alerting framework in favor of the deprecated `alertFactory` * Defines the `default` alert config for these rule types so framework level fields will be written out into the `.alerts-default.alerts-default` index with no rule type specific fields. * Updated some terminology from `alert` to `rule` ## To Verify * Follow the instructions in [this PR](elastic#112869) to add a legacy notification to a detection rule. * Verify the notification fires as expected * Verify an alert document is written to `.alerts-default.alerts-default` that looks like: ``` { "kibana.alert.rule.category": "Security Solution notification (Legacy)", "kibana.alert.rule.consumer": "siem", "kibana.alert.rule.execution.uuid": "cbad59ec-2a6e-4791-81c3-ae0fefd3d48a", "kibana.alert.rule.name": "Legacy notification with one action", "kibana.alert.rule.parameters": { "ruleAlertId": "9c07db42-b5fa-4ef9-8d7e-48d5688fd88e" }, "kibana.alert.rule.producer": "siem", "kibana.alert.rule.rule_type_id": "siem.notifications", "kibana.alert.rule.tags": [], "kibana.alert.rule.uuid": "1869763e-c6e7-47fd-8275-0c9568127d84", "kibana.space_ids": [ "default" ], "@timestamp": "2024-01-10T18:12:02.433Z", "event.action": "close", "event.kind": "signal", "kibana.alert.action_group": "recovered", "kibana.alert.flapping_history": [ true, true, false, false ], "kibana.alert.instance.id": "1869763e-c6e7-47fd-8275-0c9568127d84", "kibana.alert.maintenance_window_ids": [], "kibana.alert.status": "recovered", "kibana.alert.uuid": "119269e0-a767-43c9-b383-a8840b4dddd5", "kibana.alert.workflow_status": "open", "kibana.alert.start": "2024-01-10T18:08:53.373Z", "kibana.alert.time_range": { "gte": "2024-01-10T18:08:53.373Z", "lte": "2024-01-10T18:09:56.367Z" }, "kibana.version": "8.13.0", "tags": [], "kibana.alert.duration.us": 62994000, "kibana.alert.end": "2024-01-10T18:09:56.367Z", "kibana.alert.rule.revision": 0, "kibana.alert.flapping": false } ``` --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
- Loading branch information
Showing
15 changed files
with
255 additions
and
118 deletions.
There are no files selected for viewing
6 changes: 5 additions & 1 deletion
6
...plugins/alerting/server/integration_tests/__snapshots__/alert_as_data_fields.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.