<?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 Splunk Rest API: How to pass parameters in search in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Rest-API-How-to-pass-parameters-in-search/m-p/261749#M50259</link>
    <description>&lt;P&gt;HI,&lt;BR /&gt;
I have an requirement to create splunk rest api which can accept inputs and pass it to the search. Search will accept the parameters and generate the results. API should send back the results. Also how can I manage authentication in this. Please provide me the pointers for the same.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2016 20:33:18 GMT</pubDate>
    <dc:creator>vaibhavagg2006</dc:creator>
    <dc:date>2016-03-24T20:33:18Z</dc:date>
    <item>
      <title>Splunk Rest API: How to pass parameters in search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Rest-API-How-to-pass-parameters-in-search/m-p/261749#M50259</link>
      <description>&lt;P&gt;HI,&lt;BR /&gt;
I have an requirement to create splunk rest api which can accept inputs and pass it to the search. Search will accept the parameters and generate the results. API should send back the results. Also how can I manage authentication in this. Please provide me the pointers for the same.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 20:33:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Rest-API-How-to-pass-parameters-in-search/m-p/261749#M50259</guid>
      <dc:creator>vaibhavagg2006</dc:creator>
      <dc:date>2016-03-24T20:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Rest API: How to pass parameters in search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Rest-API-How-to-pass-parameters-in-search/m-p/261750#M50260</link>
      <description>&lt;P&gt;First you'll want to get a sessionid from the auth endpoints.&lt;/P&gt;

&lt;P&gt;Second you'll want to execute a search from the search endpoints and record the search id. This will require the sessionid.&lt;/P&gt;

&lt;P&gt;Then you'll want to get the results from the search endpoints after verifying the search has completed.  Both steps here will require the search id &amp;amp; sessionid.&lt;/P&gt;

&lt;P&gt;There's plenty of documentation on the Splunk rest api.  There is no need to create your own api.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/restapi"&gt;http://dev.splunk.com/restapi&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As we aren't in the business of writing your code for you, I hope you can use a search engine to fill in the blanks.&lt;/P&gt;

&lt;P&gt;Best of luck!  Let us know if you have difficulties with the api.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 21:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Rest-API-How-to-pass-parameters-in-search/m-p/261750#M50260</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-03-24T21:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Rest API: How to pass parameters in search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Rest-API-How-to-pass-parameters-in-search/m-p/261751#M50261</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
Thanks for your inputs. I am looking for an endpoint through which I can pass parameters to my search. Can we call a macro using rest api.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 18:25:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Rest-API-How-to-pass-parameters-in-search/m-p/261751#M50261</guid>
      <dc:creator>vaibhavagg2006</dc:creator>
      <dc:date>2016-05-11T18:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Rest API: How to pass parameters in search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Rest-API-How-to-pass-parameters-in-search/m-p/261752#M50262</link>
      <description>&lt;P&gt;Absolutely.  You'd have to escape the single quotes on the Marco but you can do this via the search endpoints.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 19:19:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Rest-API-How-to-pass-parameters-in-search/m-p/261752#M50262</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-11T19:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Rest API: How to pass parameters in search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Rest-API-How-to-pass-parameters-in-search/m-p/261753#M50263</link>
      <description>&lt;P&gt;did you get the answer of this question?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 18:24:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Rest-API-How-to-pass-parameters-in-search/m-p/261753#M50263</guid>
      <dc:creator>neeldesai1992</dc:creator>
      <dc:date>2017-10-13T18:24:06Z</dc:date>
    </item>
  </channel>
</rss>

