alert
Update the status, resolution, tags, assignee, visibility and comments
Added in version 4.15.0
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
assigned_to_user_id | str | No | The user ID (the email address) of the user to assign the alerts to. This is compared with the C(assigned_to_uid) key of an alert. An empty string unassigns the alerts. Mutually exclusive with I(assigned_to_uuid). | |
assigned_to_uuid | str | No | The UUID of the user to assign the alerts to. An empty string unassigns the alerts. Mutually exclusive with I(assigned_to_user_id). | |
comment | str | No | A comment to add to the alerts. The comment is added only to the alerts that have no comment with exactly this text, so a second run adds no comment. Comments cannot be changed or removed. | |
composite_ids | list | Yes | The composite IDs of the alerts to update, in the form C( | |
purge_tags | bool | No | false | Remove the tags of the alerts that are not in I(tags). The resolution tag of an alert is never removed. Use I(resolution=none) to remove it. Requires I(tags). |
resolution | str | No | The resolution of the alerts. The API stores the resolution as the tag of the same name, so the resolution is also in the C(tags) of the alert. An alert has one resolution at a time. A new resolution replaces the one that the alert has. C(none) removes the resolution of the alert. | |
show_in_ui | bool | No | Whether the alerts are shown in the Falcon console. | |
status | str | No | The status of the alerts. | |
tags | list | No | The tags that the alerts must have. Tags are case-sensitive. The values C(true_positive), C(false_positive) and C(ignored) are resolutions. Use I(resolution) to set them. |
Examples
Section titled “Examples”- name: Close an alert as a false positive with a comment crowdstrike.falcon.alert: composite_ids: - "1234567890abcdef1234567890abcdef:ind:abcdef1234567890abcdef1234567890:1234567890123456789-10304-123456789" status: closed resolution: false_positive comment: "Known admin tool, closed after review"
- name: Set alerts in progress and assign them by user ID crowdstrike.falcon.alert: composite_ids: - "1234567890abcdef1234567890abcdef:ind:abcdef1234567890abcdef1234567890:1234567890123456789-10304-123456789" - "1234567890abcdef1234567890abcdef:ind:abcdef1234567890abcdef1234567890:1234567890123456789-10304-987654321" status: in_progress assigned_to_user_id: "user@example.com"
- name: Add tags to an alert crowdstrike.falcon.alert: composite_ids: - "1234567890abcdef1234567890abcdef:ind:abcdef1234567890abcdef1234567890:1234567890123456789-10304-123456789" tags: - triage - team-a
- name: Unassign an alert crowdstrike.falcon.alert: composite_ids: - "1234567890abcdef1234567890abcdef:ind:abcdef1234567890abcdef1234567890:1234567890123456789-10304-123456789" assigned_to_uuid: ""
- name: Find the new low severity alerts crowdstrike.falcon.alert_info: filter: "status:'new'+severity:<30" register: low_alerts
- name: Close the alerts that were found crowdstrike.falcon.alert: composite_ids: "{{ low_alerts.alerts | map(attribute='composite_id') | list }}" status: closed resolution: ignored
- name: Hide an alert in the Falcon console crowdstrike.falcon.alert: composite_ids: - "1234567890abcdef1234567890abcdef:ind:abcdef1234567890abcdef1234567890:1234567890123456789-10304-123456789" show_in_ui: falseReturn Values
Section titled “Return Values”| Key | Type | Description |
|---|---|---|
alerts | list | The alerts, in the order of I(composite_ids). After a change, the alerts are read again from the API. In check mode and when nothing changed, these are the alerts as read before. Each alert has all the keys that M(crowdstrike.falcon.alert_info) returns. The keys that this module compares are listed here. With diff mode, the diff has C(before) and C(after) dicts keyed by composite ID, with the compared keys only. |