<?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: Call External REST URL from search in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Call-External-REST-URL-from-search/m-p/451663#M6362</link>
    <description>&lt;P&gt;Do you want the REST API call to originate from the user's browser?  Remember dashboards can have javascript and that javascript can do anything that the cross-origin policy allows.  Sometimes cross-origin policy makes it just too difficult to call 3rd party APIs directly from the browser though.&lt;/P&gt;

&lt;P&gt;You can always &lt;A href="http://dev.splunk.com/view/python-sdk/SP-CAAAEU2"&gt;build your own custom search command&lt;/A&gt;.   The user (or the dashboard they are viewing) makes a call to &lt;CODE&gt;| callmyrestapi&lt;/CODE&gt;  which runs a python script on the search head that does the needful.&lt;/P&gt;

&lt;P&gt;There is already an app, &lt;A href="https://splunkbase.splunk.com/app/4172/"&gt;https://splunkbase.splunk.com/app/4172/&lt;/A&gt;, that provides a very generic &lt;CODE&gt;|curl&lt;/CODE&gt; custom search command.  This may be enough to do what you need.&lt;/P&gt;</description>
    <pubDate>Sun, 03 Feb 2019 14:28:21 GMT</pubDate>
    <dc:creator>dwaddle</dc:creator>
    <dc:date>2019-02-03T14:28:21Z</dc:date>
    <item>
      <title>Call External REST URL from search</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Call-External-REST-URL-from-search/m-p/451662#M6361</link>
      <description>&lt;P&gt;I know that we can use REST Modular Input to call REST API and get the results in JSON format in Splunk. But, my requirement is different.&lt;BR /&gt;
I want to make a rest call directly in Splunk search. is this possible ?  If yes, can someone give any pointers ?&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2019 12:40:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Call-External-REST-URL-from-search/m-p/451662#M6361</guid>
      <dc:creator>premraj_vs</dc:creator>
      <dc:date>2019-02-03T12:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Call External REST URL from search</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Call-External-REST-URL-from-search/m-p/451663#M6362</link>
      <description>&lt;P&gt;Do you want the REST API call to originate from the user's browser?  Remember dashboards can have javascript and that javascript can do anything that the cross-origin policy allows.  Sometimes cross-origin policy makes it just too difficult to call 3rd party APIs directly from the browser though.&lt;/P&gt;

&lt;P&gt;You can always &lt;A href="http://dev.splunk.com/view/python-sdk/SP-CAAAEU2"&gt;build your own custom search command&lt;/A&gt;.   The user (or the dashboard they are viewing) makes a call to &lt;CODE&gt;| callmyrestapi&lt;/CODE&gt;  which runs a python script on the search head that does the needful.&lt;/P&gt;

&lt;P&gt;There is already an app, &lt;A href="https://splunkbase.splunk.com/app/4172/"&gt;https://splunkbase.splunk.com/app/4172/&lt;/A&gt;, that provides a very generic &lt;CODE&gt;|curl&lt;/CODE&gt; custom search command.  This may be enough to do what you need.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2019 14:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Call-External-REST-URL-from-search/m-p/451663#M6362</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2019-02-03T14:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Call External REST URL from search</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Call-External-REST-URL-from-search/m-p/451664#M6363</link>
      <description>&lt;P&gt;Thank you. Will check this&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2019 19:26:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Call-External-REST-URL-from-search/m-p/451664#M6363</guid>
      <dc:creator>premraj_vs</dc:creator>
      <dc:date>2019-02-03T19:26:16Z</dc:date>
    </item>
  </channel>
</rss>

