<?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: How to configure POST request using webhook as an Alert Action? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/432229#M7512</link>
    <description>&lt;P&gt;Hello, @agoyal . I would just like to ask if you were able to have some solutions with your question? Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 04 May 2020 04:55:09 GMT</pubDate>
    <dc:creator>juliennerocafor</dc:creator>
    <dc:date>2020-05-04T04:55:09Z</dc:date>
    <item>
      <title>How to configure POST request using webhook as an Alert Action?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/432223#M7506</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am looking to configure POST request using webhook as an Alert action.&lt;/P&gt;
&lt;P&gt;Issue is I am not sure how to configure all these details. I am only getting URL options.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6670i71EF761AA3A8985C/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Request Details:

-   URL: &lt;A href="http://mule/issuesapi/v2/jiratst/projects/TI/issues" target="test_blank"&gt;http://mule/issuesapi/v2/jiratst/projects/TI/issues&lt;/A&gt;
-   Method: POST
-   Credentials as Basic Authentication:
-   Username/Password: ***/***
-   Body

Request1:
{
  "summary": "Test to create TI issue from mule",
  "description": "Mule Testing Jira Api one level of Module",
  "type": "Incident",
  "priority": "3-Medium",
  "reporter": "ag",
  "moduleMapLevels":{"parent":"Common to All Modules"},
  "moduleMapAssets": [{"name":"Rates | IRD"},{"name":"CRD | CRD"}]
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jun 2020 21:51:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/432223#M7506</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2020-06-09T21:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure POST request using webhook as an Alert Action?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/432224#M7507</link>
      <description>&lt;P&gt;Hi @agoyal,&lt;/P&gt;

&lt;P&gt;You can't send custom payload using Webhook alert action, it will by default send below payload (Check &lt;CODE&gt;$SPLUNK_HOME/vetc/apps/alert_webhook/bin/webhook.py&lt;/CODE&gt; ) which contain Job SID, Search Name, App name, owner, Job Result link and Result.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;settings = json.loads(sys.stdin.read())
url = settings['configuration'].get('url')
body = OrderedDict(
    sid=settings.get('sid'),
    search_name=settings.get('search_name'),
    app=settings.get('app'),
    owner=settings.get('owner'),
    results_link=settings.get('results_link'),
    result=settings.get('result')
)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Mar 2019 13:39:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/432224#M7507</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-14T13:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure POST request using webhook as an Alert Action?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/432225#M7508</link>
      <description>&lt;P&gt;Thanks @harsmarvania57 : Any idea if there is a way to send custom payload ?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 14:04:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/432225#M7508</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2019-03-14T14:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure POST request using webhook as an Alert Action?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/432226#M7509</link>
      <description>&lt;P&gt;Not with inbuilt webhook alert action, I’ll suggest you to create your own alert actions based on your requirement.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 19:25:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/432226#M7509</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-14T19:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure POST request using webhook as an Alert Action?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/432227#M7510</link>
      <description>&lt;P&gt;Take a look at the following alert actions.&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/3226/"&gt;https://splunkbase.splunk.com/app/3226/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/rzzldzzl/alert_webhook_ng"&gt;https://github.com/rzzldzzl/alert_webhook_ng&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2019 14:41:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/432227#M7510</guid>
      <dc:creator>jrizzo_splunk</dc:creator>
      <dc:date>2019-03-23T14:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure POST request using webhook as an Alert Action?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/432228#M7511</link>
      <description>&lt;P&gt;Hi @harsmarvania57 ,&lt;/P&gt;

&lt;P&gt;I am adding a webhook url &lt;A href="http://myhosting.com/splunk_alert"&gt;http://myhosting.com/splunk_alert&lt;/A&gt; and I want to get the result from alert payload. I have nodejs api where I am listing to the post request&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;app.post('/splunk_alert', function(request, response){
  console.log(request.body);      // your JSON
   response.send(request.body);    // echo the result back
});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Am I getting this correct? is this how I can get the result from the request body from the splunk alert?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Nitin&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 19:11:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/432228#M7511</guid>
      <dc:creator>nitsingh</dc:creator>
      <dc:date>2019-09-11T19:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure POST request using webhook as an Alert Action?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/432229#M7512</link>
      <description>&lt;P&gt;Hello, @agoyal . I would just like to ask if you were able to have some solutions with your question? Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 04:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/432229#M7512</guid>
      <dc:creator>juliennerocafor</dc:creator>
      <dc:date>2020-05-04T04:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure POST request using webhook as an Alert Action?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/550605#M10473</link>
      <description>&lt;P&gt;Hello harsmarvania57&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Is it not possible to add more require field under $SPLUNK_HOME/vetc/apps/alert_webhook/bin/webhook.py ??&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 07:08:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/550605#M10473</guid>
      <dc:creator>sivashanmugam</dc:creator>
      <dc:date>2021-05-06T07:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure POST request using webhook as an Alert Action?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/550804#M10476</link>
      <description>&lt;P&gt;I'll suggest you to create new app based on your requirement. As far as I know alert_webhook is default app in Splunk so whenever you'll upgrade Splunk, script will revert back.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 12:30:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-configure-POST-request-using-webhook-as-an-Alert-Action/m-p/550804#M10476</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2021-05-07T12:30:58Z</dc:date>
    </item>
  </channel>
</rss>

