The logs showed the alert/saved search was triggered successfully at the scheduled time, but no emails were received as per the alert actions set, even when the alert was triggered.
02-16-2022 21:31:45.988 +0000 INFO SavedSplunker - savedsearch_id="nobody;xxxx_custom_SAP;Splunk SAP Alert Process P1", search_type="scheduled", user="t983360", app="xxxx_custom_SAP", savedsearch_name="Splunk SAP Alert Process P1", priority=default, status=success, digest_mode=0, scheduled_time=1645046100, window_time=0, dispatch_time=1645046738, run_time=362.251, result_count=0, alert_actions="", sid="scheduler__t983360_c3luZ2VudGFfY3VzdG9tX1NBUA__RMD5f33dcaeaadb81d04_at_1645046100_35521", suppressed=0, fired=0, skipped=0, action_time_ms=2, thread_id="AlertNotifierWorker-41", message="", workload_pool=""
Run the below search from the SH where the alert was configured:
index=_internal source=*scheduler.log savedsearch_name="Name of your saved search"
Running this query at the precise time when the alert is triggered would give us the information on the saved search..
Fields and values to consider:
* result_count
* alert_actions
* status
To reproduce the issue:
Case 1: result_count=4, alert_actions="email" which implies the trigger conditions were met and alert-actions(send email) is success.
Case 2: result_count=0, alert_actions="" which implies the trigger conditions were not met and no alert-actions were done, since the alert triggering condition set were "greater than 0" for the number of results. Here, result_count=0 contradicted the alert trigger conditions set.
Conclusion:
In this case "result_count=0", implies no events were recorded for the given search, the alert got triggered as per schedule, but no "alert_actions"(send email) could be made, as the result count is 0, and contradicts the alert triggering conditions set for the saved search, here for "Splunk SAP Alert Process P1", "Trigger alert when number of results is greater than 0".
Hence, this also concludes the search used did not find any events in first place.
Alert Trigger Conditions:
Community reference: Alert not triggering
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |