How to change the "FROM" address when alert emails are sent?


As of now when email alerts are sent, the from address is the hostname of server sending the alert.
Is it possible to change that to a generic one like the internal splunk support team.

eg: As of now the from in email alerts is

Can i get it changed to

Tags (2)


from =

The portion is applied by the email relay server

0 Karma

Splunk Employee
Splunk Employee

Create a file alert_actions.conf on the system/local of the SH, and have the below config, then restart.
cat /opt/splunk/etc/system/local/alert_actions.conf
from =

Note: - This was an old question, providing a direct answer, than getting into docs and investigating.


@snethala_splunk Thankyou, I had to struggle a lot before getting to this,
You can simply change sender's email address in below configuration and it worked for me.

mailserver = localhost
pdf.header_left = none
pdf.header_right = none
from =

Before making config changes, you can test it out first to see its a valid email/company domain combination,
<your Search>| sendemail to= <your email>  from=

0 Karma

Splunk Employee
Splunk Employee

See the documentation for alertactions.conf here, specifically the from= attribute under the [email] stanza.

Get Updates on the Splunk Community!

Observability | How to Think About Instrumentation Overhead (White Paper)

Novice observability practitioners are often overly obsessed with performance. They might approach ...

Cloud Platform | Get Resiliency in the Cloud Event (Register Now!)

IDC Report: Enterprises Gain Higher Efficiency and Resiliency With Migration to Cloud  Today many enterprises ...

The Great Resilience Quest: 10th Leaderboard Update

The tenth leaderboard update (11.23-12.05) for The Great Resilience Quest is out &gt;&gt; As our brave ...