Reporting

I'm trying email a report using "sendemail to" command but it's throwing error

ariyazudeen
New Member

Using the query to send email to my ID which I have configured in email settings. If i trigger the Alert I'm getting the email but if using "sendemail to" command in search it's not sending the email and throwing below error.

Query:
index="_internal" | top 5 host | sendemail to="****@gmail.com"

Error:
command="sendemail", [Errno 10061] No connection could be made because the target machine actively refused it while sending mail

Tags (1)
0 Karma

JDukeSplunk
Builder

I think by default sendemail uses localhost as the mail server. Could be wrong there..
Anyway, we had similar issues with sendemail from the search string, and speciying the STMP host fixed it for us.

index="_internal" | top 5 host | sendemail to="whatever@gmail.com" server=yourmailserver.fqdn.name

https://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/Sendemail

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...