Splunk Search

Monitoring email status

nonno_pinto
Engager

Hi everyone!

My goal is to create an alert to monitor in ALL saved search if there's any email that no longer exist (mainly, colleagues that left the company or similar).

My idea was to search for the same patter of Mail Delivery Subsystem that happens when sending an email from Gmail (or any other) to a non-existing mail. Bud didn't find anything in _internal index, nor with a rest to saved search and index=mail is empty.

Amy idea?

Tags (3)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Are you trying to find errors send email *from* Splunk or using Splunk to find any email sending errors?  I'll assume the former for now.

Splunk logs email it sends in python.log.  Searching for "sendemail" should find them.  The only errors you're likely to find are failures to pass the email to the SMTP server.  Any failures beyond that point would be sent as mailer-daemon messages to the sending mailbox.  You'll only be able to search for those if you are Splunking the mailbox (not common).

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Are you trying to find errors send email *from* Splunk or using Splunk to find any email sending errors?  I'll assume the former for now.

Splunk logs email it sends in python.log.  Searching for "sendemail" should find them.  The only errors you're likely to find are failures to pass the email to the SMTP server.  Any failures beyond that point would be sent as mailer-daemon messages to the sending mailbox.  You'll only be able to search for those if you are Splunking the mailbox (not common).

---
If this reply helps you, Karma would be appreciated.
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 ...