<?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 run Splunk searches in a custom REST endpoint? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-run-Splunk-searches-in-a-custom-REST-endpoint/m-p/259605#M77830</link>
    <description>&lt;P&gt;I've tried singleshot search to services/search/jobs end point with python requests and it works.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Dec 2015 05:04:46 GMT</pubDate>
    <dc:creator>i2sheri</dc:creator>
    <dc:date>2015-12-21T05:04:46Z</dc:date>
    <item>
      <title>How to run Splunk searches in a custom REST endpoint?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-run-Splunk-searches-in-a-custom-REST-endpoint/m-p/259602#M77827</link>
      <description>&lt;P&gt;I have implemented a custom rest end point and it's working. Now I have another requirement to run Splunk searches in the same rest end point, so I would like to know the best practice for it.&lt;/P&gt;

&lt;P&gt;I've tried calling search/jobs rest point, but I do not see actual search results&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 06:17:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-run-Splunk-searches-in-a-custom-REST-endpoint/m-p/259602#M77827</guid>
      <dc:creator>i2sheri</dc:creator>
      <dc:date>2015-12-02T06:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Splunk searches in a custom REST endpoint?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-run-Splunk-searches-in-a-custom-REST-endpoint/m-p/259603#M77828</link>
      <description>&lt;P&gt;When you POST to /services/search/jobs, the response from the splunk server should be a search id (sid). You will then need to do a GET request to /services/search/jobs//results to get the results from splunk (when they are ready)&lt;/P&gt;

&lt;P&gt;Alternatively you can use the /services/search/jobs/export endpoint. This will stream the results back to you.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 13:27:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-run-Splunk-searches-in-a-custom-REST-endpoint/m-p/259603#M77828</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2015-12-02T13:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Splunk searches in a custom REST endpoint?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-run-Splunk-searches-in-a-custom-REST-endpoint/m-p/259604#M77829</link>
      <description>&lt;P&gt;I've already tried singleshot search to services/search/jobs end point with splunk.rest.simpleRequest() but I did not receive results. No luck with /services/search/jobs/export endpoint too.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 05:04:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-run-Splunk-searches-in-a-custom-REST-endpoint/m-p/259604#M77829</guid>
      <dc:creator>i2sheri</dc:creator>
      <dc:date>2015-12-21T05:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Splunk searches in a custom REST endpoint?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-run-Splunk-searches-in-a-custom-REST-endpoint/m-p/259605#M77830</link>
      <description>&lt;P&gt;I've tried singleshot search to services/search/jobs end point with python requests and it works.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 05:04:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-run-Splunk-searches-in-a-custom-REST-endpoint/m-p/259605#M77830</guid>
      <dc:creator>i2sheri</dc:creator>
      <dc:date>2015-12-21T05:04:46Z</dc:date>
    </item>
  </channel>
</rss>

