Reporting

Email alert not sending. [Errno 10061] in python.log

wuming79
Path Finder

I am trying the following search to send email but encounters error message in python.log indicating "[Errno 10061] No connection could be made because the target machine actively refused it while sending mail to: temp@domain.com".

Also tried saving search as alert and indicated email address but also got the above error message.

temperature sourcetype=kaa | rex field=_raw "\"endpointKeyHash\":\{\"string\":\"(?<endpoint>[^\"]*)\".*\"Event\": (?<mydata>\{.*\})\}$"| spath input=mydata | table _time, endpoint, temperature | eval threshold = 50 | where temperature > threshold | sendemail to=tzewei_79@yahoo.com.sg sendresults=true

May I know what other settings I need to do at this point? Please help.

Tags (1)
0 Karma

MuS
Legend

Hi wuming79,

this sounds like trouble/problems outside of Splunk.
Check there is no firewall blocking SMTP from your Splunk server, check that the mail server you are using (Windows defaults as well to localhost and has most likely not any email sending facility by default) is allowing you to relay emails.

All your friendly network and email admin to check this for you.

Hope this helps ...

cheers, MuS

0 Karma

wuming79
Path Finder

May I know how I can if my firewall is blocking SMTP from splunk server? Am I supposed to look inside Advanced settings?

0 Karma

wuming79
Path Finder

Does alert works if the free trial expires? I'm trying this from home network and still see the same problem.

0 Karma

MuS
Legend

No, if the free trail license has expired alerting will stop because its not available - see the docs for more details http://docs.splunk.com/Documentation/Splunk/latest/Admin/MoreaboutSplunkFree?r=searchtip#What_is_inc...

0 Karma

MuS
Legend

Ask your sysadmin or network admin for help. This is not something that can be configured in Splunk.

But a good starting point is this here https://www.port25.com/how-to-check-an-smtp-connection-with-a-manual-telnet-session-2/

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...