<?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 Alert Script not running Splunk in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-Script-not-running-Splunk/m-p/76974#M1063</link>
    <description>&lt;P&gt;I created an search query and I am trying to send an alert mail and run a script  through splunk.&lt;BR /&gt;
Though I get the alert mail, script does not seem to be executing.&lt;BR /&gt;
I tried executing the default script "echo.sh" but its also not working.&lt;BR /&gt;
If I execute "echo.sh", it works.&lt;BR /&gt;
I have placed my script in $SPLUNKHOME/bin/scripts ( where echo.sh is present )&lt;BR /&gt;
Please help&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2013 01:43:34 GMT</pubDate>
    <dc:creator>shilpi</dc:creator>
    <dc:date>2013-06-27T01:43:34Z</dc:date>
    <item>
      <title>Alert Script not running Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Script-not-running-Splunk/m-p/76974#M1063</link>
      <description>&lt;P&gt;I created an search query and I am trying to send an alert mail and run a script  through splunk.&lt;BR /&gt;
Though I get the alert mail, script does not seem to be executing.&lt;BR /&gt;
I tried executing the default script "echo.sh" but its also not working.&lt;BR /&gt;
If I execute "echo.sh", it works.&lt;BR /&gt;
I have placed my script in $SPLUNKHOME/bin/scripts ( where echo.sh is present )&lt;BR /&gt;
Please help&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 01:43:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Script-not-running-Splunk/m-p/76974#M1063</guid>
      <dc:creator>shilpi</dc:creator>
      <dc:date>2013-06-27T01:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Script not running Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Script-not-running-Splunk/m-p/76975#M1064</link>
      <description>&lt;P&gt;Did you configure an email server?&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/Alert/Setupalertactions#Configure_email_alert_settings_in_Manager"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.3/Alert/Setupalertactions#Configure_email_alert_settings_in_Manager&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I see that you ate getting the email, but script not running. Did you check permissions on script? Is it executable?&lt;/P&gt;

&lt;P&gt;Also take a look at the python.log for more clues.&lt;/P&gt;

&lt;P&gt;Have you looked at this?&lt;A href="http://wiki.splunk.com/Community:TroubleshootingAlertScripts"&gt;http://wiki.splunk.com/Community:TroubleshootingAlertScripts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 01:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Script-not-running-Splunk/m-p/76975#M1064</guid>
      <dc:creator>adrianathome</dc:creator>
      <dc:date>2013-06-27T01:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Script not running Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Script-not-running-Splunk/m-p/76976#M1065</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;BR /&gt;
Yes The script is executable and it run when executed manually.&lt;BR /&gt;
I do not see any python.log in var/log.&lt;BR /&gt;
Only logs present are splunkd.log and metrics.log.&lt;BR /&gt;
I have already referred to the link provided by you but nothing seems to be working.&lt;BR /&gt;
Please let me know in case you have any idea&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 18:12:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Script-not-running-Splunk/m-p/76976#M1065</guid>
      <dc:creator>shilpi</dc:creator>
      <dc:date>2013-06-27T18:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Script not running Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Script-not-running-Splunk/m-p/76977#M1066</link>
      <description>&lt;P&gt;Log location should be $SPLUNK_HOME/var/log/splunk/&lt;/P&gt;

&lt;P&gt;There should be a python.log file there. &lt;/P&gt;

&lt;P&gt;The other thing is to make sure that you are using the python version that splunk will use. You can test this with the following command:&lt;BR /&gt;
$SPLUNK_HOME/bin/splunk cmd python script.py&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2013 02:29:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Script-not-running-Splunk/m-p/76977#M1066</guid>
      <dc:creator>adrianathome</dc:creator>
      <dc:date>2013-06-28T02:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Script not running Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Script-not-running-Splunk/m-p/76978#M1067</link>
      <description>&lt;P&gt;Hello Shilpi,&lt;/P&gt;

&lt;P&gt;Did you find the solution for this? Even I am facing the same problem.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 11:37:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Script-not-running-Splunk/m-p/76978#M1067</guid>
      <dc:creator>Chinmai</dc:creator>
      <dc:date>2017-04-04T11:37:27Z</dc:date>
    </item>
  </channel>
</rss>

