Skip to content

alert

Update the status, resolution, tags, assignee, visibility and comments

Added in version 4.15.0

ParameterTypeRequiredDefaultDescription
assigned_to_user_idstrNoThe 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_uuidstrNoThe UUID of the user to assign the alerts to. An empty string unassigns the alerts. Mutually exclusive with I(assigned_to_user_id).
commentstrNoA 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_idslistYesThe composite IDs of the alerts to update, in the form C(::<…>). This is the C(composite_id) key of an alert, not its C(id) key. A repeated ID is used once. An empty list changes nothing.
purge_tagsboolNofalseRemove 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).
resolutionstrNoThe 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_uiboolNoWhether the alerts are shown in the Falcon console.
statusstrNoThe status of the alerts.
tagslistNoThe 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.
- 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: false
KeyTypeDescription
alertslistThe 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.