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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...