<?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: Alert Script is not running? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-Script-is-not-running/m-p/181207#M3050</link>
    <description>&lt;P&gt;I want to disable the input from the console when an alert is generated. &lt;/P&gt;

&lt;P&gt;For disabling the output, I need to "cd to the directory" where input.conf file is present and change the "disable=false" to true. I want to do this using the script which runs when I get an alert. I need my script to work on the console.&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2015 16:32:58 GMT</pubDate>
    <dc:creator>shreyasj</dc:creator>
    <dc:date>2015-05-06T16:32:58Z</dc:date>
    <item>
      <title>Alert Script is not running?</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Script-is-not-running/m-p/181203#M3046</link>
      <description>&lt;P&gt;I created an alert, it is working fine. When I echo into a "echo_output.sh" file, it works fine. When I'm trying to echo the same content on the console, nothing happens. When I manually execute the file ( instead of, from the splunk) it runs as expected.&lt;/P&gt;

&lt;P&gt;Here is the link for another question, this question also has the same issue as my question.&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/92958/alert-script-not-running-splunk.html"&gt;http://answers.splunk.com/answers/92958/alert-script-not-running-splunk.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I hope to get some help soon.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2015 21:38:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Script-is-not-running/m-p/181203#M3046</guid>
      <dc:creator>shreyasj</dc:creator>
      <dc:date>2015-05-05T21:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Script is not running?</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Script-is-not-running/m-p/181204#M3047</link>
      <description>&lt;P&gt;Hi, Splunk will launch scripts from within it's runtime env. Does your scripts run if you run them from splunk cmd line?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    cd  to splunk_home (wherever splunk is installed)
    cd bin
    ./splunk cmd path_to_your_script/echo_output.sh
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 May 2015 23:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Script-is-not-running/m-p/181204#M3047</guid>
      <dc:creator>Yasaswy</dc:creator>
      <dc:date>2015-05-05T23:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Script is not running?</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Script-is-not-running/m-p/181205#M3048</link>
      <description>&lt;P&gt;Yes, I just checked. I get the expected output when I use "./splunk cmd path_to_your_script/echo_output.sh"&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Script-is-not-running/m-p/181205#M3048</guid>
      <dc:creator>shreyasj</dc:creator>
      <dc:date>2020-09-28T19:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Script is not running?</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Script-is-not-running/m-p/181206#M3049</link>
      <description>&lt;P&gt;Ok. I might have misunderstood your question. Are to trying to send off an alert to STDOUT from within splunk (using splunk scheduler)? &lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2015 13:13:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Script-is-not-running/m-p/181206#M3049</guid>
      <dc:creator>Yasaswy</dc:creator>
      <dc:date>2015-05-06T13:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Script is not running?</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Script-is-not-running/m-p/181207#M3050</link>
      <description>&lt;P&gt;I want to disable the input from the console when an alert is generated. &lt;/P&gt;

&lt;P&gt;For disabling the output, I need to "cd to the directory" where input.conf file is present and change the "disable=false" to true. I want to do this using the script which runs when I get an alert. I need my script to work on the console.&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2015 16:32:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Script-is-not-running/m-p/181207#M3050</guid>
      <dc:creator>shreyasj</dc:creator>
      <dc:date>2015-05-06T16:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Script is not running?</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Script-is-not-running/m-p/181208#M3051</link>
      <description>&lt;P&gt;Do you have the hashbang at the top of your script?&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2015 02:00:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Script-is-not-running/m-p/181208#M3051</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2015-05-07T02:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Script is not running?</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Script-is-not-running/m-p/181209#M3052</link>
      <description>&lt;P&gt;If your use case is to disable an input (x) on a triggered alert (y)...  are you using generic cmds to make this change (sed,awk etc ) or splunk CLI?&lt;BR /&gt;
 You are essentially trying to change a config that is already active within the session. Typically making such a change via CLI (eg: splunk edit monitor) would prompt for user and password. Additionally you need to have a way to reload the config after your change.  Were you planning on use a REST call for this?&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2015 13:55:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Script-is-not-running/m-p/181209#M3052</guid>
      <dc:creator>Yasaswy</dc:creator>
      <dc:date>2015-05-07T13:55:52Z</dc:date>
    </item>
  </channel>
</rss>

