<?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 did email alerts stop sending after upgrading to Splunk 6.1? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Why-did-email-alerts-stop-sending-after-upgrading-to-Splunk-6-1/m-p/192337#M3291</link>
    <description>&lt;P&gt;To update everyone on what the solution was for us.&lt;/P&gt;

&lt;P&gt;During the upgrade from 5 to 6.1 the sendemail.py wasn't upgraded.&lt;/P&gt;

&lt;P&gt;The sendemail.py from the github link above wasn't the incorrect one therefore didn't fix it.&lt;/P&gt;

&lt;P&gt;I did a stand alone fresh install of v6.1.4 to my laptop, grabbed the sendmail.py from there and copied it to our Splunk server.&lt;/P&gt;

&lt;P&gt;Emails are now sending.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jan 2015 16:05:00 GMT</pubDate>
    <dc:creator>EdSabine</dc:creator>
    <dc:date>2015-01-28T16:05:00Z</dc:date>
    <item>
      <title>Why did email alerts stop sending after upgrading to Splunk 6.1?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-did-email-alerts-stop-sending-after-upgrading-to-Splunk-6-1/m-p/192336#M3290</link>
      <description>&lt;P&gt;After upgrading to 6.1, our email alerts have stopped sending.&lt;/P&gt;

&lt;P&gt;In the splunkd.log I'm getting the following line&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01-13-2015 07:25:06.258 -0500 ERROR ScriptRunner - stderr from 'C:\Program Files\Splunk\bin\PYTHON.EXE C:\Program Files\Splunk\etc\apps\search\bin\sendemail.py "results_link=https://splunk.secureiq.ca:8000/app/search/@go?sid=scheduler__admin__search__RMD50a13d0b190b0c032_at_1421151900_1351" "ssname=Alert: Error Message from Windows Application Event Log" "graceful=True" "trigger_time=1421151905" results_file="C:\\Program Files\\Splunk\\var\\run\\splunk\\dispatch\\scheduler__admin__search__RMD50a13d0b190b0c032_at_1421151900_1351\\results.csv.gz"':  ERROR:root:missing required argument: to. Please specify at least on email recipient as: "to=address@example.com"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried putting the email info in the Alerts Search string, and emails are sent, however the alerts are triggered on a Cron schedule every 5 mins, so each alert sends an email every 5 mins whether there's anything to report or not.&lt;/P&gt;

&lt;P&gt;I've also tried replacing sendemail.py and sendemail_handler.py with those below and restarting Splunk....&lt;BR /&gt;
&lt;A href="https://github.com/edo17/splunk/blob/master/etc/apps/search/bin/sendemail.py" target="_blank"&gt;https://github.com/edo17/splunk/blob/master/etc/apps/search/bin/sendemail.py&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://github.com/edo17/splunk/blob/master/etc/apps/search/bin/sendemail_handler.py" target="_blank"&gt;https://github.com/edo17/splunk/blob/master/etc/apps/search/bin/sendemail_handler.py&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Am still getting the same error in the log.&lt;/P&gt;

&lt;P&gt;Can anyone help with this?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:40:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-did-email-alerts-stop-sending-after-upgrading-to-Splunk-6-1/m-p/192336#M3290</guid>
      <dc:creator>EdSabine</dc:creator>
      <dc:date>2020-09-28T18:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why did email alerts stop sending after upgrading to Splunk 6.1?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-did-email-alerts-stop-sending-after-upgrading-to-Splunk-6-1/m-p/192337#M3291</link>
      <description>&lt;P&gt;To update everyone on what the solution was for us.&lt;/P&gt;

&lt;P&gt;During the upgrade from 5 to 6.1 the sendemail.py wasn't upgraded.&lt;/P&gt;

&lt;P&gt;The sendemail.py from the github link above wasn't the incorrect one therefore didn't fix it.&lt;/P&gt;

&lt;P&gt;I did a stand alone fresh install of v6.1.4 to my laptop, grabbed the sendmail.py from there and copied it to our Splunk server.&lt;/P&gt;

&lt;P&gt;Emails are now sending.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2015 16:05:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-did-email-alerts-stop-sending-after-upgrading-to-Splunk-6-1/m-p/192337#M3291</guid>
      <dc:creator>EdSabine</dc:creator>
      <dc:date>2015-01-28T16:05:00Z</dc:date>
    </item>
  </channel>
</rss>

