This documentation does not apply to the most recent version of Splunk.
This documentation applies to the following versions of Splunk: 3.3 , 3.3.1 , 3.3.2 , 3.3.3 , 3.3.4 , 3.4 , 3.4.1 , 3.4.2 , 3.4.3 , 3.4.5 , 3.4.6 , 3.4.8 , 3.4.9 , 3.4.10 , 3.4.11 , 3.4.12 , 3.4.13
Edit alert_actions.conf to specify the message subject and from address used for alert emails. For more information on configuration files in general, see how configuration files work.
Note: Email must be enabled on your Splunk server to send alerts. Or you can specify another email server, but your Splunk server must be able to connect to it.
Add a stanza to alert_actions.conf. Edit this file in $SPLUNK_HOME/etc/system/local/, or your own custom application directory in $SPLUNK_HOME/etc/apps/.
Global options: these settings do not need to be prefaced by a stanza name. If you do not specify an entry for each attribute, Splunk will use the default value.
maxresults = <int>
hostname = <string>
Configure email options for alerts. Preface email settings with the [email] stanza name.
[email]
from = <string>
splunk@<splunk-hostname>.
subject = <string>
SplunkAlert-<savedsearchname>.
format = <string>
inline = <true | false | auto>
mailserver = <string>
localhost.
The following example alert_actions.conf sets e-mail options for alerts.
[email] from = alert@mysplunk.com subject = daily log review format = plain
[rss]
items_count = <number>