<?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: Invoke a script from alert action in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501310#M8933</link>
    <description>&lt;P&gt;Hi, I created a mod input example but I could not make it work. Could you please create an app(mod input) and write the alert_actions.conf and savedsearches.conf. Your help is much ap[[reciated.&lt;/P&gt;</description>
    <pubDate>Sun, 29 Mar 2020 13:35:31 GMT</pubDate>
    <dc:creator>rajaguru27902</dc:creator>
    <dc:date>2020-03-29T13:35:31Z</dc:date>
    <item>
      <title>Invoke a script from alert action</title>
      <link>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501302#M8925</link>
      <description>&lt;P&gt;Hi As run a script invoked from alert action is deprecated I tried to custom alert action to a script bit it is not working. Below os the conf. test is the stanza name and test.sh is the script name which I kept in bin folder. Please help on this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;alert_action.conf
[test]
is_custom = 1
label = Custom Alert Action
description = Triggers a custom alert action
icon_path = appIcon.png
alert.execute.cmd = /Data/splunk/etc/apps/0_script_test/bin/test.sh
disabled=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Mar 2020 22:19:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501302#M8925</guid>
      <dc:creator>rajagurup</dc:creator>
      <dc:date>2020-03-26T22:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke a script from alert action</title>
      <link>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501303#M8926</link>
      <description>&lt;P&gt;Pls help on this with the configuration&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 08:08:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501303#M8926</guid>
      <dc:creator>rajaguru27902</dc:creator>
      <dc:date>2020-03-27T08:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke a script from alert action</title>
      <link>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501304#M8927</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Remove &lt;CODE&gt;alert.execute.cmd = /Data/splunk/etc/apps/0_script_test/bin/test.sh&lt;/CODE&gt; and try to run schedule search because your stanza name and execution script has same name &amp;amp; here I am assuming alert_actions.conf and test.sh is in same app &lt;CODE&gt;0_script_test&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501304#M8927</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-09-30T04:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke a script from alert action</title>
      <link>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501305#M8928</link>
      <description>&lt;P&gt;No it is not working. And how my scheduled search knows this script test.sh has to be trieggered. That is where I stuck as well. My savedsearches.conf. Can you coordinate both and write the two conf files. Thanks.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Test]
alert.suppress = 1
alert.suppress.period = 100s
alert.track = 1
counttype = number of events
cron_schedule = */5 * * * *
disabled = 0
dispatch.earliest_time = -60m@m
dispatch.latest_time = now
display.visualizations.custom.treemap_app.treemap.showLabels = 1
display.visualizations.custom.treemap_app.treemap.showLegend = 1
display.visualizations.custom.treemap_app.treemap.showTooltip = 1
display.visualizations.custom.treemap_app.treemap.useColors = 1
display.visualizations.custom.treemap_app.treemap.useZoom = 1
enableSched = 1
quantity = 0
relation = greater than
request.ui_dispatch_app = search
request.ui_dispatch_view = search
search = index=_internal " error "  debug source=*splunkd.log*
#action.test_scrip.param.search_query = index=_internal " error "  debug source=*splunkd.log*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Mar 2020 14:12:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501305#M8928</guid>
      <dc:creator>rajaguru27902</dc:creator>
      <dc:date>2020-03-27T14:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke a script from alert action</title>
      <link>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501306#M8929</link>
      <description>&lt;P&gt;My requirement is whenever above saved search is trigerring alert test.sh should be invoked but not in the method of &amp;gt;Run the script(deprecated method)&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 14:26:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501306#M8929</guid>
      <dc:creator>rajaguru27902</dc:creator>
      <dc:date>2020-03-27T14:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke a script from alert action</title>
      <link>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501307#M8930</link>
      <description>&lt;P&gt;When you create schedule search, you need to select your alert action under &lt;CODE&gt;Trigger Actions -&amp;gt; Add Actions&lt;/CODE&gt;. Can you please provide your app directory and file structure for your alert actions ?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 14:36:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501307#M8930</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-03-27T14:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke a script from alert action</title>
      <link>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501308#M8931</link>
      <description>&lt;P&gt;How to do that. I could not find that option. Could you please help me?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 14:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501308#M8931</guid>
      <dc:creator>rajaguru27902</dc:creator>
      <dc:date>2020-03-27T14:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke a script from alert action</title>
      <link>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501309#M8932</link>
      <description>&lt;P&gt;It looks like you created report, you need to create alert under Settings -&amp;gt; Searches, report and alerts -&amp;gt; New Alert. In which you'll able to find this. &lt;/P&gt;

&lt;P&gt;Also I am not sure whether you created Custom Alert Action properly or not so I'll suggest you to go through docs &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/ModAlertsIntro"&gt;https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/ModAlertsIntro&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 15:07:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501309#M8932</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-03-27T15:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke a script from alert action</title>
      <link>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501310#M8933</link>
      <description>&lt;P&gt;Hi, I created a mod input example but I could not make it work. Could you please create an app(mod input) and write the alert_actions.conf and savedsearches.conf. Your help is much ap[[reciated.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2020 13:35:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501310#M8933</guid>
      <dc:creator>rajaguru27902</dc:creator>
      <dc:date>2020-03-29T13:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke a script from alert action</title>
      <link>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501311#M8934</link>
      <description>&lt;P&gt;Hi @rajaguru27902,&lt;/P&gt;

&lt;P&gt;Check my answer &lt;A href="https://answers.splunk.com/answers/810829/problem-with-scripted-alert.html#answer-810832"&gt;https://answers.splunk.com/answers/810829/problem-with-scripted-alert.html#answer-810832&lt;/A&gt; for steps to create an app for custom alert action.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 06:57:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501311#M8934</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-30T06:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke a script from alert action</title>
      <link>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501312#M8935</link>
      <description>&lt;P&gt;It worked. Thank you so much.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 08:42:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501312#M8935</guid>
      <dc:creator>rajaguru27902</dc:creator>
      <dc:date>2020-03-30T08:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke a script from alert action</title>
      <link>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501313#M8936</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;Can you create an app with UI same like Run the script(deprecated) by Splunk in such a way that we dont get warning and select the filename of the script we want as an alert action&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 12:53:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Invoke-a-script-from-alert-action/m-p/501313#M8936</guid>
      <dc:creator>rajagurup</dc:creator>
      <dc:date>2020-03-31T12:53:57Z</dc:date>
    </item>
  </channel>
</rss>

