create_alert
Create a scheduled Splunk alert with trigger conditions and actions under your profile. Define the search, schedule, threshold, and comparator to monitor data and notify when conditions are met.
Instructions
Create an alert (scheduled saved search with a trigger condition) under YOUR profile. Requires docsConsulted=true. DOCUMENTATION-FIRST: read the official Splunk docs (use the splunk_docs tool) before writing SPL or a dashboard definition; do not guess syntax or schema.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | App namespace. Default search. | |
| cron | No | Cron schedule. Default '*/15 * * * *'. | |
| name | Yes | New alert name. | |
| latest | No | Dispatch latest time. Default now. | |
| search | Yes | SPL for the alert. | |
| actions | No | Optional alert actions (e.g. 'email', 'webhook'). Configure action params in Splunk UI. | |
| earliest | No | Dispatch earliest time. Default -15m@m. | |
| condition | No | Trigger: 'number of results' | 'number of hosts' | 'number of sources' | 'custom'. Default 'number of results'. | |
| threshold | No | For non-custom: numeric threshold. Default '0'. | |
| comparator | No | For non-custom: 'greater than' | 'less than' | 'equal to' | 'not equal to' | 'rises by' | 'drops by'. Default 'greater than'. | |
| description | No | Optional description. | |
| docsConsulted | Yes | Must be true. | |
| docsReference | No | The doc URL/section you used. | |
| customCondition | No | For condition='custom': the SPL condition. |