<?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: Can we setup alerts using REST API, with action to send a POST request at a webhook? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/439386#M9039</link>
    <description>&lt;P&gt;hi @bhavneet91,&lt;/P&gt;

&lt;P&gt;Did you get a chance to try @bhavneet91 's solution? If so, would you mind approving the answer below? Or, if it didn't work, go ahead and post some more details about your issue. &lt;/P&gt;

&lt;P&gt;Thanks for posting!&lt;/P&gt;</description>
    <pubDate>Tue, 04 Sep 2018 18:11:25 GMT</pubDate>
    <dc:creator>mstjohn_splunk</dc:creator>
    <dc:date>2018-09-04T18:11:25Z</dc:date>
    <item>
      <title>Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/439384#M9037</link>
      <description>&lt;P&gt;We want to setup alerts using REST API.&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTsearch#saved.2Fsearches" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTsearch#saved.2Fsearches&lt;/A&gt; described how we can do it with POST request to /saved/searches.&lt;/P&gt;
&lt;P&gt;But this only talks about email as action. Can we have action as call to a webhook when the alert is set up through REST API.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 01:14:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/439384#M9037</guid>
      <dc:creator>bhavneet91</dc:creator>
      <dc:date>2020-06-09T01:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/439385#M9038</link>
      <description>&lt;P&gt;Hi @bhavneet91,&lt;/P&gt;

&lt;P&gt;Yes you can use below REST API to enable Weblook alert actions on scheduled search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:pass &lt;A href="https://localhost:8089/servicesNS/&amp;lt;USER&amp;gt;/&amp;lt;APP&amp;gt;/saved/searches/MySavedSearch" target="test_blank"&gt;https://localhost:8089/servicesNS/&amp;lt;USER&amp;gt;/&amp;lt;APP&amp;gt;/saved/searches/MySavedSearch&lt;/A&gt; -d actions=webhook -d action.webhook.param.url="https://your.server.com/api/v1/webhook"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Sep 2018 08:57:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/439385#M9038</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-09-04T08:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/439386#M9039</link>
      <description>&lt;P&gt;hi @bhavneet91,&lt;/P&gt;

&lt;P&gt;Did you get a chance to try @bhavneet91 's solution? If so, would you mind approving the answer below? Or, if it didn't work, go ahead and post some more details about your issue. &lt;/P&gt;

&lt;P&gt;Thanks for posting!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 18:11:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/439386#M9039</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-09-04T18:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/439387#M9040</link>
      <description>&lt;P&gt;Surprised why it is not there available on the documentation. &lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 05:58:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/439387#M9040</guid>
      <dc:creator>bhavneet91</dc:creator>
      <dc:date>2018-09-05T05:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/439388#M9041</link>
      <description>&lt;P&gt;How I can pass any other parameters to my POST method using this approach?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 10:30:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/439388#M9041</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2019-02-18T10:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/439389#M9042</link>
      <description>&lt;P&gt;Hello @santosh_sshanbhag  , I would just like to ask if you were able to have a solution for your inquiry?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 07:11:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/439389#M9042</guid>
      <dc:creator>juliennerocafor</dc:creator>
      <dc:date>2020-04-30T07:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/439390#M9043</link>
      <description>&lt;P&gt;No, ultimately I have to write a python script to create a object and set all its properties before I call the POST method.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 07:27:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/439390#M9043</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2020-04-30T07:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/505221#M9137</link>
      <description>&lt;P&gt;HI there, i tried to use this and i get an error saying;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -k -u&amp;lt;removedforsecurity&amp;gt;:&amp;lt;removedforsecurity&amp;gt; https://&amp;lt;removedforsecurity&amp;gt;.splunkcloud.com:8089/servicesNS/cmpapi/search/saved/searches/seantest-CreateAccessKey -d actions=webhook -d action.webhook.param.url="&lt;A href="https://your.server.com/api/v1/webhook" target="_blank"&gt;https://your.server.com/api/v1/webhook&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;response&amp;gt;&lt;BR /&gt;&amp;lt;messages&amp;gt;&lt;BR /&gt;&amp;lt;msg type="ERROR"&amp;gt;Argument "action.webhook.param.url" is not supported by this handler.&amp;lt;/msg&amp;gt;&lt;BR /&gt;&amp;lt;/messages&amp;gt;&lt;BR /&gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No matter what i try i get the unsupported error. This is on a Splunk Cloud instance. Is this accurate or is there another way of creating an alert with a webhook action?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 16:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/505221#M9137</guid>
      <dc:creator>sddunne</dc:creator>
      <dc:date>2020-06-19T16:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/507096#M9255</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163905"&gt;@harsmarvania57&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I tried to use this (against our splunk cloud instance) and i get an error saying;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -k -u&amp;lt;removedforsecurity&amp;gt;:&amp;lt;removedforsecurity&amp;gt; https://&amp;lt;removedforsecurity&amp;gt;.splunkcloud.com:8089/servicesNS/cmpapi/search/saved/searches/seantest-CreateAccessKey -d actions=webhook -d action.webhook.param.url="&lt;A href="https://your.server.com/api/v1/webhook" target="_blank" rel="nofollow noopener noreferrer"&gt;https://your.server.com/api/v1/webhook&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;response&amp;gt;&lt;BR /&gt;&amp;lt;messages&amp;gt;&lt;BR /&gt;&amp;lt;msg type="ERROR"&amp;gt;Argument "action.webhook.param.url" is not supported by this handler.&amp;lt;/msg&amp;gt;&lt;BR /&gt;&amp;lt;/messages&amp;gt;&lt;BR /&gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No matter what i try i get the unsupported error. This is on a Splunk Cloud instance. Is this accurate or is there another way of creating an alert with a webhook action?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 14:24:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/507096#M9255</guid>
      <dc:creator>sddunne</dc:creator>
      <dc:date>2020-07-02T14:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/508259#M9280</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222748"&gt;@sddunne&lt;/a&gt;&amp;nbsp;Is this report or alert ?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 09:16:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/508259#M9280</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-07-09T09:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/508813#M9300</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163905"&gt;@harsmarvania57&lt;/a&gt;&amp;nbsp;, it's an alert.&lt;/P&gt;&lt;P&gt;I'm trying to programatically create alerts with a webhook action. When we onboard a new service, we set up a dedicated index and would like to be able to deploy our standard set of alerts as part of the onboarding process (we currently set up all the alerts manually in the console).&lt;/P&gt;&lt;P&gt;Many thanks,&lt;BR /&gt;Sean.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 13:20:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/508813#M9300</guid>
      <dc:creator>sddunne</dc:creator>
      <dc:date>2020-07-13T13:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/509036#M9311</link>
      <description>&lt;P&gt;Is it possible you to provide how are you creating alert ? Also it will be good to create new question and refer this link in that question.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 10:46:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/509036#M9311</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-07-14T10:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/509098#M9316</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163905"&gt;@harsmarvania57&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the problem, it was generating them as reports and so they were not showing up in the console in the 'alerts' section.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know what i need to set on the report to make it show up as an alert?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sean.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 16:28:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/509098#M9316</guid>
      <dc:creator>sddunne</dc:creator>
      <dc:date>2020-07-14T16:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/524049#M9813</link>
      <description>&lt;P&gt;Will the type be create as "Report" or "Alert"..?? There are two types one is "Report" and another is "Alert". I have create a saved search, created its schedule etc.. but the type is still "Report". How to do it for "Alert" type??&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2020 08:07:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/524049#M9813</guid>
      <dc:creator>sandeepduppalli</dc:creator>
      <dc:date>2020-10-11T08:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/555387#M10577</link>
      <description>&lt;P&gt;Hi Santosh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible for you to share the python script you created. I have something similar to be done for one of my clienst&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 21:49:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/555387#M10577</guid>
      <dc:creator>Jknike</dc:creator>
      <dc:date>2021-06-10T21:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can we setup alerts using REST API, with action to send a POST request at a webhook?</title>
      <link>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/559735#M10644</link>
      <description>&lt;P&gt;Did you find out how can we save it as alert? A new report is getting created.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 02:55:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Can-we-setup-alerts-using-REST-API-with-action-to-send-a-POST/m-p/559735#M10644</guid>
      <dc:creator>siddhant</dc:creator>
      <dc:date>2021-07-16T02:55:26Z</dc:date>
    </item>
  </channel>
</rss>

