Alerting

alert - can I sent email from specific email address only for specific alert

net1993
Path Finder

Hello
I know I can set from email address in alert_actions.conf with attribute: from = "some@email" but this is global setting which will make that src. email for all emails sent out. Is it possible that I set the specific email address but only for specific alert?

0 Karma
1 Solution

VatsalJagani
SplunkTrust
SplunkTrust

Hello @net1993,

I don't think that is possible, as alert_actions.conf has only one property for from element. One thing that you can try is as below. I'm sure if that is feasible in your case.
Create separate Apps for those you need separate from email address, put alert actions in those with different configuration and keep it to "App only privileged" from meta file.

View solution in original post

VatsalJagani
SplunkTrust
SplunkTrust

Hello @net1993,

I don't think that is possible, as alert_actions.conf has only one property for from element. One thing that you can try is as below. I'm sure if that is feasible in your case.
Create separate Apps for those you need separate from email address, put alert actions in those with different configuration and keep it to "App only privileged" from meta file.

net1993
Path Finder

Hi. I need field "From:" not "To:"

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

I don't think that is possible, as alert_actions.conf has only one property for from element.
One thing that you can try is as below. I'm sure if that is feasible in your case.
Create separate Apps for those you need separate from email address, put alert actions in those with different configuration and keep it to "App only privileged" from meta file.

net1993
Path Finder

Yes I was considering that option as well but I was wondering if there is easier way:).
Anyway, thank you. I accept this answer because I think it will work.

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

Nice to here that you already have this in mind. If you have some limited number of "From" emails you can do this. I've updated my answer for future user's reference. Please accept it.
Thanks!!!

0 Karma

p_gurav
Champion

Please try sendemail command.

0 Karma

net1993
Path Finder

If I try to put email sending settings in the search, then I cannot control the alert threshold so I cannot see that this is an option.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

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 ...