The sendemail command is not processing the "to" field when using an eval statement to populate it for saved searches on a schedule.
If the saved search is run manually the search can successfully pass the information to the sendemail command. As a result the search works and the intended recipients receive the expected email. If the search operates on a schedule, something fails and the value is not populated in the "to" field. There were no errors detected when experiencing this problem, but users may experience the email settings page failing to load under Settings -> Server Settings.
Upgrade Splunk to 9.1.4 or later. Once upgraded, recreate the alert, schedule a test and confirm receipt.
If upgrading is not immediately available, follow the steps below for a workaround:
SPLUNK_HOME/etc/apps/search/bin/sendemail.pyclear_password = cli_common.decrypt(encrypted_password, setEnv=True)
A restart of Splunk is required after making these changes.
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |