<?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 How can I search a specific index via the API using curl? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-a-specific-index-via-the-API-using-curl/m-p/64986#M13063</link>
    <description>&lt;P&gt;How can I search a specific index via the API using curl? When I try to use &lt;BR /&gt;
curl -u user:pass -k -d 'search=search index="indexname"  OR curl -u user:pass -k -d 'search=search index="indexname"&lt;/P&gt;

&lt;P&gt;I get results but the following messages returned...&lt;BR /&gt;
No Matching index found for 'index=indexname'&lt;BR /&gt;
No mmatching index found for index::indexname&lt;/P&gt;

&lt;P&gt;Any help would be appreciated..&lt;/P&gt;</description>
    <pubDate>Sat, 04 Feb 2012 00:14:10 GMT</pubDate>
    <dc:creator>msmapper</dc:creator>
    <dc:date>2012-02-04T00:14:10Z</dc:date>
    <item>
      <title>How can I search a specific index via the API using curl?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-a-specific-index-via-the-API-using-curl/m-p/64986#M13063</link>
      <description>&lt;P&gt;How can I search a specific index via the API using curl? When I try to use &lt;BR /&gt;
curl -u user:pass -k -d 'search=search index="indexname"  OR curl -u user:pass -k -d 'search=search index="indexname"&lt;/P&gt;

&lt;P&gt;I get results but the following messages returned...&lt;BR /&gt;
No Matching index found for 'index=indexname'&lt;BR /&gt;
No mmatching index found for index::indexname&lt;/P&gt;

&lt;P&gt;Any help would be appreciated..&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2012 00:14:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-a-specific-index-via-the-API-using-curl/m-p/64986#M13063</guid>
      <dc:creator>msmapper</dc:creator>
      <dc:date>2012-02-04T00:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search a specific index via the API using curl?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-a-specific-index-via-the-API-using-curl/m-p/64987#M13064</link>
      <description>&lt;P&gt;The problem here is because your request isn't URL encoded. Specifically, your:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search index="indexname"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Needs to be URL encoded. You can easily fix this by doing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:changeme &lt;A href="https://localhost:8089/services/search/jobs" target="test_blank"&gt;https://localhost:8089/services/search/jobs&lt;/A&gt; --data-urlencode 'search=search index="_internal" | head 1'
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Feb 2012 00:43:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-search-a-specific-index-via-the-API-using-curl/m-p/64987#M13064</guid>
      <dc:creator>ineeman</dc:creator>
      <dc:date>2012-02-04T00:43:51Z</dc:date>
    </item>
  </channel>
</rss>

