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!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...