Reporting

Where does splunk log email failures

adoshi
Explorer

It seems that Splunk is not sending the emails when the alerts are triggered. Is there any place where I can see what errors were logged when splunk tried to send the alert email?

Labels (1)
Tags (1)
0 Karma

Amandeepsin
New Member

Check

cat /var/log/maillog

Check if any connection is refused by SMTP Server... If yes, then inform your IT Team

0 Karma

Amandeepsin
New Member

Try to check under Server Settings and Then Email Settings
Afterwards check Alert Action on Splunk UI

0 Karma

johnquinn
Explorer

Maillog doesn't exist on Insights for infrastructure and our python.log file is empty.
SMTP server settings are set the same way as many other systems, but the alerts from splunk do not get sent.
Need a way to troubleshoot the issues.

Thanks,

0 Karma

yannK
Splunk Employee
Splunk Employee

Check in $SPLUNK_HOME/var/log/splunk/python.log

or use the search :
index=_internal source=*python.log*

gjanders
SplunkTrust
SplunkTrust

I created an alert called "AllSplunkEnterpriseLevel - Email Sending Failures", if you needed an example it's available in github here or the app with all the alerts is available here, Alerts For Splunk Admins

0 Karma

adoshi
Explorer

Thank you.

0 Karma

woodcock
Esteemed Legend

You should click Accept on this answer, @adoshi, to close the question.

0 Karma

gjanders
SplunkTrust
SplunkTrust

@woodcock it might be worth noting this is a 2012 post and the user was last seen in 2015...

Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...