<?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: Unable to run a search through REST API in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-run-a-search-through-REST-API/m-p/207300#M60456</link>
    <description>&lt;P&gt;I swear I tried going directly to that port, and I didn't get anything. Now I do...&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2016 18:44:12 GMT</pubDate>
    <dc:creator>tmontney</dc:creator>
    <dc:date>2016-08-05T18:44:12Z</dc:date>
    <item>
      <title>Unable to run a search through REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-run-a-search-through-REST-API/m-p/207298#M60454</link>
      <description>&lt;P&gt;I am trying to run a saved search through the REST API. To test, I was trying to pull up a list.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://pbdc-splk-01:8089/services/saved/searches"&gt;https://pbdc-splk-01:8089/services/saved/searches&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I've used the HttpRequester plugin for FIrefox, as well as used HttpWebRequest in VB.NET. Both I add authentication, and both are unable to connect. I have opened 8089 on the server's firewall. I have seen documentation on this, but see either server:port/servicesNS/admin/saved/seaches or server:port/services/saved/searches. I'm not sure what URL is correct. I've also tried HTTP and HTTPS.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        Dim wr As Net.WebRequest = Net.WebRequest.Create("https://pbdc-splk-01:8089/services/saved/searches")
        Dim ss As New Security.SecureString
        'add password to ss variable'
        wr.Credentials = New Net.NetworkCredential("admin", ss)
        wr.Method = "GET"
        Dim resp As Net.HttpWebResponse = wr.GetResponse()
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Aug 2016 18:30:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-run-a-search-through-REST-API/m-p/207298#M60454</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2016-08-05T18:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to run a search through REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-run-a-search-through-REST-API/m-p/207299#M60455</link>
      <description>&lt;P&gt;You should be able to use the browser and open the endpoint: &lt;A href="https://pbdc-splk-01:8089"&gt;https://pbdc-splk-01:8089&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You will see a services link that if you click it will give you an authentication challenge.  If you can do that then the network is OK.&lt;/P&gt;

&lt;P&gt;If not, it could be that something like iptables is blocking the 8089 port.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 18:35:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-run-a-search-through-REST-API/m-p/207299#M60455</guid>
      <dc:creator>sjohnson_splunk</dc:creator>
      <dc:date>2016-08-05T18:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to run a search through REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-run-a-search-through-REST-API/m-p/207300#M60456</link>
      <description>&lt;P&gt;I swear I tried going directly to that port, and I didn't get anything. Now I do...&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 18:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-run-a-search-through-REST-API/m-p/207300#M60456</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2016-08-05T18:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to run a search through REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-run-a-search-through-REST-API/m-p/207301#M60457</link>
      <description>&lt;P&gt;If  &lt;A href="https://pbdc-splk-01:8089"&gt;https://pbdc-splk-01:8089&lt;/A&gt; is a linux box, look at iptables.  If windows, windows firewall or other endpoint protection product.&lt;/P&gt;

&lt;P&gt;Also make sure that splunk is running and that the management port hasn't been moved to some other port. &lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 18:57:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-run-a-search-through-REST-API/m-p/207301#M60457</guid>
      <dc:creator>sjohnson_splunk</dc:creator>
      <dc:date>2016-08-05T18:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to run a search through REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-run-a-search-through-REST-API/m-p/207302#M60458</link>
      <description>&lt;P&gt;Ok, so I'm getting valid responses now. How would I, say, run a search called 'Authenticate'? I've tried &lt;A href="https://pbdc-splk-01:8089/servicesNS/admin/search/saved/searches/Authenticate?trigger_action=1"&gt;https://pbdc-splk-01:8089/servicesNS/admin/search/saved/searches/Authenticate?trigger_action=1&lt;/A&gt; and I get "trigger_action is not supported". I do not want an example in CURL.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 19:45:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-run-a-search-through-REST-API/m-p/207302#M60458</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2016-08-05T19:45:32Z</dc:date>
    </item>
  </channel>
</rss>

