Alerting

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

adityapavan18
Contributor

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

splunk@reportingserver.com

Can i get it changed to

splunksupport@company.com

Tags (2)

klemaned
Explorer

[email]
from =

The @domain.com portion is applied by the email relay server

0 Karma

snethala_splunk
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
[email]
from = splunksupport@company.com

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

Jasdeep
Explorer

@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.
 /splunk/etc/system/local/alert_actions.conf

[email]
mailserver = localhost
pdf.header_left = none
pdf.header_right = none
from = Splunk@companyname.com


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= Splunk@companyname.com



0 Karma

s2_splunk
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!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...