<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why can't I send emails via alerting? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Why-can-t-I-send-emails-via-alerting/m-p/607347#M14067</link>
    <description>&lt;P&gt;It's worth to check your email server settings and make sure they are valid servers&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Server settings&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;»&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Email settings&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.0/Alert/Emailnotification" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.0/Alert/Emailnotification&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2022 11:06:19 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2022-07-28T11:06:19Z</dc:date>
    <item>
      <title>Why can't I send emails via alerting?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-can-t-I-send-emails-via-alerting/m-p/607129#M14047</link>
      <description>&lt;P&gt;Hello, I was trying to setup Alerting via emails and it wouldn't work. Alert for sure gets triggered, because other alert_action works (Add to triggered alerts) but the email one didn't.&lt;BR /&gt;In "var\log\splunk\python.log" I found out that for every trigger there is&amp;nbsp; error log&lt;BR /&gt;Ex.:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;2022-07-27&lt;/SPAN&gt; &lt;SPAN&gt;08:30:04,382&lt;/SPAN&gt;&lt;SPAN&gt; +&lt;/SPAN&gt;&lt;SPAN&gt;0200&lt;/SPAN&gt; &lt;SPAN&gt;ERROR&lt;/SPAN&gt;&lt;SPAN&gt; sendemail:&lt;/SPAN&gt;&lt;SPAN&gt;1610&lt;/SPAN&gt;&lt;SPAN&gt; - [HTTP &lt;/SPAN&gt;&lt;SPAN&gt;404&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://127.0.0.1:8089/servicesNS/admin/search/alerts/alert_actions/email?output_mode=json" target="_blank" rel="noopener"&gt;https://127.0.0.1:8089/servicesNS/admin/search/alerts/alert_actions/email?output_mode=json&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; File &lt;/SPAN&gt;&lt;SPAN&gt;"C:\Program Files\Splunk\etc\apps\search\bin\sendemail.py"&lt;/SPAN&gt;&lt;SPAN&gt;, line &lt;/SPAN&gt;&lt;SPAN&gt;1603&lt;/SPAN&gt;&lt;SPAN&gt;, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; results = sendEmail(results, settings, keywords, argvals)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; File &lt;/SPAN&gt;&lt;SPAN&gt;"C:\Program Files\Splunk\etc\apps\search\bin\sendemail.py"&lt;/SPAN&gt;&lt;SPAN&gt;, line &lt;/SPAN&gt;&lt;SPAN&gt;193&lt;/SPAN&gt;&lt;SPAN&gt;, in sendEmail&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; responseHeaders, responseBody = simpleRequest(uri, method=&lt;/SPAN&gt;&lt;SPAN&gt;'GET'&lt;/SPAN&gt;&lt;SPAN&gt;, getargs={&lt;/SPAN&gt;&lt;SPAN&gt;'output_mode'&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;'json'&lt;/SPAN&gt;&lt;SPAN&gt;}, sessionKey=sessionKey)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; File &lt;/SPAN&gt;&lt;SPAN&gt;"C:\Program Files\Splunk\Python-3.7\lib\site-packages\splunk\rest\__init__.py"&lt;/SPAN&gt;&lt;SPAN&gt;, line &lt;/SPAN&gt;&lt;SPAN&gt;583&lt;/SPAN&gt;&lt;SPAN&gt;, in simpleRequest&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; raise &lt;/SPAN&gt;&lt;SPAN&gt;splunk.ResourceNotFound&lt;/SPAN&gt;&lt;SPAN&gt;(uri)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;splunk.ResourceNotFound&lt;/SPAN&gt;&lt;SPAN&gt;: [HTTP &lt;/SPAN&gt;&lt;SPAN&gt;404&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://127.0.0.1:8089/servicesNS/admin/search/alerts/alert_actions/email?output_mode=json" target="_blank" rel="noopener"&gt;https://127.0.0.1:8089/servicesNS/admin/search/alerts/alert_actions/email?output_mode=json&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;I tried "| sendemail..." and it generates the same error there.&lt;BR /&gt;What is supposed to be in the endpoint and how do I fix it?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 14:23:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-can-t-I-send-emails-via-alerting/m-p/607129#M14047</guid>
      <dc:creator>simon00</dc:creator>
      <dc:date>2022-07-27T14:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I send emails via alerting?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-can-t-I-send-emails-via-alerting/m-p/607347#M14067</link>
      <description>&lt;P&gt;It's worth to check your email server settings and make sure they are valid servers&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Server settings&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;»&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Email settings&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.0/Alert/Emailnotification" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.0/Alert/Emailnotification&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 11:06:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-can-t-I-send-emails-via-alerting/m-p/607347#M14067</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2022-07-28T11:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I send emails via alerting?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-can-t-I-send-emails-via-alerting/m-p/607368#M14069</link>
      <description>&lt;P&gt;I am confident with my email server settings. I made(edited one I downloaded) custom alert action that consumes those settings and sends emails correctly. This is just workaround though and I am still working on the fix.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 12:45:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-can-t-I-send-emails-via-alerting/m-p/607368#M14069</guid>
      <dc:creator>simon00</dc:creator>
      <dc:date>2022-07-28T12:45:05Z</dc:date>
    </item>
  </channel>
</rss>

