<?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 REST API Specific Search in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-Specific-Search/m-p/103629#M21800</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I try to do a search with Splunk REST API from a C# client.&lt;/P&gt;

&lt;P&gt;I need to search some general term but I need to specify some information like the host, index etc.&lt;/P&gt;

&lt;P&gt;Here is my query:&lt;/P&gt;

&lt;P&gt;url: &lt;BR /&gt;
https:1.1.1.1:8089/services/search/jobs&lt;/P&gt;

&lt;P&gt;Args in request body:&lt;BR /&gt;
search=search SOMETERMTOSEARCH host=HOSTNAMETOSEARCHWITHIN&lt;/P&gt;

&lt;P&gt;Right now, it work if I specificy only the SOMETERMTOSEARCH. If I add the &lt;STRONG&gt;host=HOSTNAMETOSEARCHWITHIN&lt;/STRONG&gt;, Splunk truncated it to &lt;STRONG&gt;search=search SOMETERMTOSEARCH host=&lt;/STRONG&gt;. Same thing if I add &lt;STRONG&gt;index=MYINDEXNAME&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;How can I specify these extra parameters?&lt;/P&gt;

&lt;P&gt;i try to add them as arguments like &lt;STRONG&gt;earliest_time&lt;/STRONG&gt; or &lt;STRONG&gt;latest_time&lt;/STRONG&gt; but it's not work either.&lt;/P&gt;

&lt;P&gt;Can someone help me?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jan 2013 20:33:04 GMT</pubDate>
    <dc:creator>domtheluck</dc:creator>
    <dc:date>2013-01-29T20:33:04Z</dc:date>
    <item>
      <title>REST API Specific Search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-Specific-Search/m-p/103629#M21800</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I try to do a search with Splunk REST API from a C# client.&lt;/P&gt;

&lt;P&gt;I need to search some general term but I need to specify some information like the host, index etc.&lt;/P&gt;

&lt;P&gt;Here is my query:&lt;/P&gt;

&lt;P&gt;url: &lt;BR /&gt;
https:1.1.1.1:8089/services/search/jobs&lt;/P&gt;

&lt;P&gt;Args in request body:&lt;BR /&gt;
search=search SOMETERMTOSEARCH host=HOSTNAMETOSEARCHWITHIN&lt;/P&gt;

&lt;P&gt;Right now, it work if I specificy only the SOMETERMTOSEARCH. If I add the &lt;STRONG&gt;host=HOSTNAMETOSEARCHWITHIN&lt;/STRONG&gt;, Splunk truncated it to &lt;STRONG&gt;search=search SOMETERMTOSEARCH host=&lt;/STRONG&gt;. Same thing if I add &lt;STRONG&gt;index=MYINDEXNAME&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;How can I specify these extra parameters?&lt;/P&gt;

&lt;P&gt;i try to add them as arguments like &lt;STRONG&gt;earliest_time&lt;/STRONG&gt; or &lt;STRONG&gt;latest_time&lt;/STRONG&gt; but it's not work either.&lt;/P&gt;

&lt;P&gt;Can someone help me?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 20:33:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-Specific-Search/m-p/103629#M21800</guid>
      <dc:creator>domtheluck</dc:creator>
      <dc:date>2013-01-29T20:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Specific Search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-Specific-Search/m-p/103630#M21801</link>
      <description>&lt;P&gt;Hi - We will be releasing our C# SDK shortly and that should be able to help you.  We can give you pre-release access now.  Just send an email to:  &lt;A href="mailto:devinfo@splunk.com"&gt;devinfo@splunk.com&lt;/A&gt; with your GitHub ID and we will get you access. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 04:31:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-Specific-Search/m-p/103630#M21801</guid>
      <dc:creator>psanford_splunk</dc:creator>
      <dc:date>2013-01-30T04:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Specific Search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-Specific-Search/m-p/103631#M21802</link>
      <description>&lt;P&gt;Thanks for your quick answer!&lt;/P&gt;

&lt;P&gt;I will contact you shortly with my GitHub ID.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 13:52:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-Specific-Search/m-p/103631#M21802</guid>
      <dc:creator>domtheluck</dc:creator>
      <dc:date>2013-01-30T13:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Specific Search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-Specific-Search/m-p/103632#M21803</link>
      <description>&lt;P&gt;It sounds like you should urlEncode the portion of the string that are a value, ie:&lt;BR /&gt;
"search=" + UrlEncode("search SOMETERMTOSEARCH host=HOSTNAMETOSEARCHWITHIN")&lt;/P&gt;</description>
      <pubDate>Sun, 10 Feb 2013 23:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-Specific-Search/m-p/103632#M21803</guid>
      <dc:creator>ugavnholt</dc:creator>
      <dc:date>2013-02-10T23:17:25Z</dc:date>
    </item>
  </channel>
</rss>

