<?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: Saved Search cannot send email in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Saved-Search-cannot-send-email/m-p/143689#M2314</link>
    <description>&lt;P&gt;Great catch, thanks for sharing!&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jan 2015 14:46:53 GMT</pubDate>
    <dc:creator>jwelsh_splunk</dc:creator>
    <dc:date>2015-01-27T14:46:53Z</dc:date>
    <item>
      <title>Saved Search cannot send email</title>
      <link>https://community.splunk.com/t5/Alerting/Saved-Search-cannot-send-email/m-p/143685#M2310</link>
      <description>&lt;P&gt;Afternoon all,&lt;/P&gt;

&lt;P&gt;I've upgraded splunk to version 6.1.3 recently and encountered an error in a scheduled saved search. The search, for an unknown reason, failed to identify the recipients listed in the configuration and splunkd.log showed the error like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 09-29-2014 15:30:18.287 +0700 ERROR ScriptRunner - stderr from '/apps/splunk/bin/python /apps/splunk/etc/apps/TselITSECOpSecEvents/bin/sendemail.py "results_link=https://10.35.105.25:8000/app/TselITSECOpSecEvents/@go?sid=scheduler__admin__TselITSECOpSecEvents__RMD5dba399bcecc9591e_at_1411979400_324" "ssname=tsel_itsecevent_unusual_access_to_resource_non_privilage_user" "graceful=True" "trigger_time=1411979418" results_file="/apps/splunk/var/run/splunk/dispatch/scheduler__admin__TselITSECOpSecEvents__RMD5dba399bcecc9591e_at_1411979400_324/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 inspected the job and I found all recipients. Unfortunately, splunk keep delivering the same error message. Can someone enlighten me about this case?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2014 08:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Saved-Search-cannot-send-email/m-p/143685#M2310</guid>
      <dc:creator>vincenteous</dc:creator>
      <dc:date>2014-09-29T08:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Saved Search cannot send email</title>
      <link>https://community.splunk.com/t5/Alerting/Saved-Search-cannot-send-email/m-p/143686#M2311</link>
      <description>&lt;P&gt;Hello Vincenteous,&lt;BR /&gt;
This is happening because of your old sendemail.py file. If you have managed to customize it you may not be able to use it with savedsearch. There are two options.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;One is to include a |sendmail command in your search and remove the to list. This will just work fine with all the provided parameters to the command.&lt;/LI&gt;
&lt;LI&gt;You need to replace the  sendemail.py file with default search app sendemail.py file and customize it. You may also go for a scripting solution which will not actually change with every splunk release. Splunk doesn't give us a good template to customize our own email format so we need to do it by ourselves.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
L&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2014 11:12:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Saved-Search-cannot-send-email/m-p/143686#M2311</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-09-29T11:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Saved Search cannot send email</title>
      <link>https://community.splunk.com/t5/Alerting/Saved-Search-cannot-send-email/m-p/143687#M2312</link>
      <description>&lt;P&gt;Thank you very much, L. I've suspected that sendemail.py would be the primary cause before, but I wasn't sure enough to execute it. I used method no. 2 in the end.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 01:53:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Saved-Search-cannot-send-email/m-p/143687#M2312</guid>
      <dc:creator>vincenteous</dc:creator>
      <dc:date>2014-09-30T01:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Saved Search cannot send email</title>
      <link>https://community.splunk.com/t5/Alerting/Saved-Search-cannot-send-email/m-p/143688#M2313</link>
      <description>&lt;P&gt;Thanks to L. I've replaced the old sendemail.py with the one from splunk 6.1.3 version. As for preemptive measure, I've also replaced the old sendemail_handler.py.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 01:55:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Saved-Search-cannot-send-email/m-p/143688#M2313</guid>
      <dc:creator>vincenteous</dc:creator>
      <dc:date>2014-09-30T01:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Saved Search cannot send email</title>
      <link>https://community.splunk.com/t5/Alerting/Saved-Search-cannot-send-email/m-p/143689#M2314</link>
      <description>&lt;P&gt;Great catch, thanks for sharing!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2015 14:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Saved-Search-cannot-send-email/m-p/143689#M2314</guid>
      <dc:creator>jwelsh_splunk</dc:creator>
      <dc:date>2015-01-27T14:46:53Z</dc:date>
    </item>
  </channel>
</rss>

