Other Usage

How do I send an alert email from Splunk's Search to my corporate Outlook email?

acj-ishikawa
Observer

Hi

I would like to send search results from Splunk search to my corporate Outlook domain email address, but it is not working.
I specified the Outlook SMTP server & port (smtp.office365.com:587) and  user credentials of company domain at the Splunk email settings, but the email was not sent.
The command used in the search is this.

 

index=_internal | sendemail to="myemailid@companydomain" server=smtp.office365.com:587

 

It doesn't matter if the email is sent from Outlook's SMTP server or from Splunk's local host from anywhere, as long as it can be sent.
Information about the Splunk I am using : Splunk Enterprise version 9.0.3

Any ideas are welcomed ! And would be appreciated !

Labels (2)
0 Karma

acj-ishikawa
Observer

Thank you for contacting me.
Either way using the Alert Trigger Action or from SPL Search is fine.

0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi @acj-ishikawa ..

may i know if you created alert and thru the alert trigger action you want the email notification.. 

or  just from the SPL Search Query, you want to send the email notification?

 

documentation for alert email notification settings:

https://docs.splunk.com/Documentation/Splunk/9.0.4/Alert/Emailnotification

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma
Get Updates on the Splunk Community!

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...