<?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 make a web service call from the dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-web-service-call-from-the-dashboard/m-p/404240#M41372</link>
    <description>&lt;P&gt;Hi @mohitthapar,&lt;/P&gt;

&lt;P&gt;Probably you have to get the data first in splunk and build dashboard on top of that as mentioned in &lt;A href="https://www.splunk.com/blog/2013/06/18/getting-data-from-your-rest-apis-into-splunk.html"&gt;https://www.splunk.com/blog/2013/06/18/getting-data-from-your-rest-apis-into-splunk.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jun 2018 12:27:18 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2018-06-26T12:27:18Z</dc:date>
    <item>
      <title>How to make a web service call from the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-web-service-call-from-the-dashboard/m-p/404237#M41369</link>
      <description>&lt;P&gt;I want to call a web service from the dashboard using post method from the UI. How to define the web service in the app?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 11:05:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-web-service-call-from-the-dashboard/m-p/404237#M41369</guid>
      <dc:creator>mohitthapar</dc:creator>
      <dc:date>2018-06-26T11:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a web service call from the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-web-service-call-from-the-dashboard/m-p/404238#M41370</link>
      <description>&lt;P&gt;@mohitthapar, could you elaborate on your use case as to what is the trigger condition for POST action and any other details on what you want to send with POST to which REST Endpoint (or is it custom)?&lt;/P&gt;

&lt;P&gt;You can create POST Workflow Action on the Raw events based on their eventtype:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/SetupaPOSTworkflowaction"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/SetupaPOSTworkflowaction&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Not sure if this is what you need.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 11:25:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-web-service-call-from-the-dashboard/m-p/404238#M41370</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-06-26T11:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a web service call from the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-web-service-call-from-the-dashboard/m-p/404239#M41371</link>
      <description>&lt;P&gt;Thanks. I want to show the output(Example: Risk Score or something) of rest API call in UI on a button click. On button click that rest API should be called and display the response. So how to define this rest API inside our app. &lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 11:30:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-web-service-call-from-the-dashboard/m-p/404239#M41371</guid>
      <dc:creator>mohitthapar</dc:creator>
      <dc:date>2018-06-26T11:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a web service call from the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-web-service-call-from-the-dashboard/m-p/404240#M41372</link>
      <description>&lt;P&gt;Hi @mohitthapar,&lt;/P&gt;

&lt;P&gt;Probably you have to get the data first in splunk and build dashboard on top of that as mentioned in &lt;A href="https://www.splunk.com/blog/2013/06/18/getting-data-from-your-rest-apis-into-splunk.html"&gt;https://www.splunk.com/blog/2013/06/18/getting-data-from-your-rest-apis-into-splunk.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 12:27:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-web-service-call-from-the-dashboard/m-p/404240#M41372</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-06-26T12:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a web service call from the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-web-service-call-from-the-dashboard/m-p/404241#M41373</link>
      <description>&lt;P&gt;Are you familiar with Splunk SDK or SplunkJS? Is this link &lt;A href="http://docs.splunk.com/DocumentationStatic/JavaScriptSDK/1.8.3/splunkjs.Service.Endpoint.html"&gt;http://docs.splunk.com/DocumentationStatic/JavaScriptSDK/1.8.3/splunkjs.Service.Endpoint.html&lt;/A&gt; of any help?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 12:37:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-web-service-call-from-the-dashboard/m-p/404241#M41373</guid>
      <dc:creator>rvany</dc:creator>
      <dc:date>2018-06-26T12:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a web service call from the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-web-service-call-from-the-dashboard/m-p/404242#M41374</link>
      <description>&lt;P&gt;Agreed, besides &lt;A href="https://splunkbase.splunk.com/app/1546/"&gt;REST API Modular input&lt;/A&gt;, you can also try the &lt;A href="https://splunkbase.splunk.com/app/2962/"&gt;Splunk Add On Builder&lt;/A&gt;. You can configure the input to get data through POST (Refer to the documentation &lt;A href="http://docs.splunk.com/Documentation/AddonBuilder/latest/UserGuide/ConfigureDataCollection"&gt;http://docs.splunk.com/Documentation/AddonBuilder/latest/UserGuide/ConfigureDataCollection&lt;/A&gt;).&lt;/P&gt;

&lt;P&gt;Alternatively, you can create your own python script to POST to REST API URL and process the response and ingest to Splunk. &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/ModAlertsBasicExample"&gt;http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/ModAlertsBasicExample&lt;/A&gt;&lt;BR /&gt;
On click on a button in UI, you can invoke your Python Script using the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/script"&gt;script&lt;/A&gt; command.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 18:17:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-web-service-call-from-the-dashboard/m-p/404242#M41374</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-06-26T18:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a web service call from the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-web-service-call-from-the-dashboard/m-p/609943#M50011</link>
      <description>&lt;P&gt;The documentation is incorrect. it is not even valid javascript.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 09:17:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-web-service-call-from-the-dashboard/m-p/609943#M50011</guid>
      <dc:creator>sboogaar</dc:creator>
      <dc:date>2022-08-18T09:17:48Z</dc:date>
    </item>
  </channel>
</rss>

