Update Alert
update_alertUpdate existing Splunk alerts by patching search, schedule, trigger conditions, actions, and tracking fields while leaving unspecified settings unchanged.
Instructions
Update an existing Splunk alert (a scheduled saved search with trigger conditions and optional actions). Omit any field you do not want to change. Search, schedule, trigger, and tracking fields are always patched.
actions_mode (only applies when actions is sent): patch (default): Change only the listed actions and params. Other actions and unspecified params on those actions stay as they are. Use this to change one setting (for example only email.to). Set enabled=false on an action to turn that action off without touching the others. override: The actions list becomes the full set. Listed actions are enabled with the given params; any action currently on the alert but missing from the list is disabled. Use this when you want the alert to have exactly these actions.
Call list_alert_actions first for custom actions and their param names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | App context for lookup | |
| name | Yes | Alert name (required) | |
| owner | No | Owner context for lookup | |
| search | No | New SPL query | |
| actions | No | [{name, params, enabled}] | |
| alert_type | No | Trigger type | |
| is_visible | No | ||
| alert_track | No | Show in Triggered Alerts | |
| description | No | New description | |
| latest_time | No | New dispatch latest time | |
| actions_mode | No | patch|override (default: patch) | patch |
| cron_schedule | No | New cron schedule | |
| earliest_time | No | New dispatch earliest time | |
| alert_severity | No | 1-5 | |
| alert_condition | No | Custom trigger search | |
| alert_threshold | No | Threshold | |
| alert_comparator | No | Comparator | |
| alert_digest_mode | No |