<?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: When searching via REST API in a distributed search environment, why am I getting error &amp;quot;supplied index 'p_uno' missing&amp;quot;? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225394#M66479</link>
    <description>&lt;P&gt;yes, the indexers are configured as distributed search peers and they are working; the forwarders are configured to send data only to the indexers and the searchhead reads the data (correctly) from both&lt;/P&gt;</description>
    <pubDate>Tue, 01 Mar 2016 11:18:08 GMT</pubDate>
    <dc:creator>petreb</dc:creator>
    <dc:date>2016-03-01T11:18:08Z</dc:date>
    <item>
      <title>When searching via REST API in a distributed search environment, why am I getting error "supplied index 'p_uno' missing"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225392#M66477</link>
      <description>&lt;P&gt;Hallo,&lt;/P&gt;

&lt;P&gt;I have a setup with 2 indexers and a dedicated search head; the indexes.conf file is defined only on the indexers (they are configured as deployment clients with the search head as the deployment server in order to simplify the administration of the settings).&lt;/P&gt;

&lt;P&gt;Searching via REST API always returns error message &lt;CODE&gt;"supplied index 'p_uno' missing"&lt;/CODE&gt;. According to this: &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/334974/rest-api-receiverssimple-supplied-index-missing.html"&gt;https://answers.splunk.com/answers/334974/rest-api-receiverssimple-supplied-index-missing.html&lt;/A&gt;&lt;BR /&gt;
the solution would be to define the indexes also on the search head, i.e. the indexes.conf from the deployment class directory should be copied in etc/system/local.&lt;/P&gt;

&lt;P&gt;The question is, how can I stop the search head from saving locally the indexed data, when the indexes.conf file gives also the physical paths pro index?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 06:38:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225392#M66477</guid>
      <dc:creator>petreb</dc:creator>
      <dc:date>2016-03-01T06:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: When searching via REST API in a distributed search environment, why am I getting error "supplied index 'p_uno' missing"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225393#M66478</link>
      <description>&lt;P&gt;Have you set up the indexers as search peers to the search head? It sounds like your search head is only search itself, but it does not have any data. &lt;/P&gt;

&lt;P&gt;Have you followed all the steps here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/DistSearch/Configuredistributedsearch"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/DistSearch/Configuredistributedsearch&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 10:38:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225393#M66478</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-03-01T10:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: When searching via REST API in a distributed search environment, why am I getting error "supplied index 'p_uno' missing"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225394#M66479</link>
      <description>&lt;P&gt;yes, the indexers are configured as distributed search peers and they are working; the forwarders are configured to send data only to the indexers and the searchhead reads the data (correctly) from both&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 11:18:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225394#M66479</guid>
      <dc:creator>petreb</dc:creator>
      <dc:date>2016-03-01T11:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: When searching via REST API in a distributed search environment, why am I getting error "supplied index 'p_uno' missing"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225395#M66480</link>
      <description>&lt;P&gt;So searching from web UI works but searching from the API fails?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 11:30:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225395#M66480</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-03-01T11:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: When searching via REST API in a distributed search environment, why am I getting error "supplied index 'p_uno' missing"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225396#M66481</link>
      <description>&lt;P&gt;exactly, und according to one question I found here (the link is in my OP) the indexes should be defined also on the indexer (which isn't, in my case)&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 12:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225396#M66481</guid>
      <dc:creator>petreb</dc:creator>
      <dc:date>2016-03-01T12:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: When searching via REST API in a distributed search environment, why am I getting error "supplied index 'p_uno' missing"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225397#M66482</link>
      <description>&lt;P&gt;What REST endpoint are you accessing? Can you post your full request? The Splunk answer you lined to is talking about a data input, not a search. &lt;/P&gt;

&lt;P&gt;Also can you clarify - in your last comment you said that  the index p_uno is  NOT defined on your indexers. But in your question you said it is ONLY defined on your indexers.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 10:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225397#M66482</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-03-02T10:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: When searching via REST API in a distributed search environment, why am I getting error "supplied index 'p_uno' missing"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225398#M66483</link>
      <description>&lt;P&gt;sorry, my fault, I have thought search head and wrote indexers&lt;/P&gt;

&lt;P&gt;the indexes are defined ONLY on the indexers and not on the searchhead&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u user:pass "https://searchhead:8089/services/receivers/simple?source=www&amp;amp;sourcetype=web_event&amp;amp;index=p_uno" -d  "2016/02/26 03:00:01,some_random_string,0,2367,84032"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;answer&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;msg type="WARN"&amp;gt;supplied index 'p_uno' missing&amp;lt;/msg&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;answer for index main works&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;result&amp;gt;
  &amp;lt;field k="_index"&amp;gt;
    &amp;lt;value&amp;gt;
      &amp;lt;text&amp;gt;main&amp;lt;/text&amp;gt;
    &amp;lt;/value&amp;gt;
  &amp;lt;/field&amp;gt;
  &amp;lt;field k="bytes"&amp;gt;
    &amp;lt;value&amp;gt;
      &amp;lt;text&amp;gt;60&amp;lt;/text&amp;gt;
    &amp;lt;/value&amp;gt;
  &amp;lt;/field&amp;gt;
  &amp;lt;field k="host"&amp;gt;
    &amp;lt;value&amp;gt;
      &amp;lt;text&amp;gt;10.134.222.99&amp;lt;/text&amp;gt;
    &amp;lt;/value&amp;gt;
  &amp;lt;/field&amp;gt;
  &amp;lt;field k="source"&amp;gt;
    &amp;lt;value&amp;gt;
      &amp;lt;text&amp;gt;www&amp;lt;/text&amp;gt;
    &amp;lt;/value&amp;gt;
  &amp;lt;/field&amp;gt;
  &amp;lt;field k="sourcetype"&amp;gt;
    &amp;lt;value&amp;gt;
      &amp;lt;text&amp;gt;web_event&amp;lt;/text&amp;gt;
    &amp;lt;/value&amp;gt;
  &amp;lt;/field&amp;gt;
&amp;lt;/result&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;basically he doesn't find the p_uno on the searchhead, because the searchhead doesn't have the indexes defined&lt;/P&gt;

&lt;P&gt;what happens if I copy the indexes.conf on the searchhead ? will it also save/store data locally ?&lt;/P&gt;

&lt;P&gt;thanks for your patience&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 15:23:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225398#M66483</guid>
      <dc:creator>petreb</dc:creator>
      <dc:date>2016-03-03T15:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: When searching via REST API in a distributed search environment, why am I getting error "supplied index 'p_uno' missing"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225399#M66484</link>
      <description>&lt;P&gt;I see - why not use the rest endpoint on the indexer? Then you don't need to create the index on the search head&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 18:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225399#M66484</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-03-03T18:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: When searching via REST API in a distributed search environment, why am I getting error "supplied index 'p_uno' missing"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225400#M66485</link>
      <description>&lt;P&gt;I suppose you mean&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -ku user:pass &lt;A href="https://localhost:8089/servicesNS/admin/search/search/jobs/export" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/search/jobs/export&lt;/A&gt; -d search="search 2016/02/26 03:00:01,some_search_string" -d output_mode=csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this "spreads" the search across the indexers and gives all available results (see below)&lt;/P&gt;

&lt;P&gt;many many thanks&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"_serial","_time",source,sourcetype,host,index,"splunk_server","_raw"
0,"2016-02-26 03:00:01.000 CET",www,"web_event","10.104.176.7","p_uno","splunk01-indexer","2016/02/26 03:00:01,some_search_string"
0,"2016-02-26 03:00:01.000 CET",www,"web_event","10.104.176.7","p_uno","splunk02-indexer","2016/02/26 03:00:01,some_search_string"
1,"2016-02-26 03:00:01.000 CET",www,"web_event","10.104.176.7","p_uno","splunk02-indexer","2016/02/26 03:00:01,some_search_string"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Mar 2016 06:11:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225400#M66485</guid>
      <dc:creator>petreb</dc:creator>
      <dc:date>2016-03-04T06:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: When searching via REST API in a distributed search environment, why am I getting error "supplied index 'p_uno' missing"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225401#M66486</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; curl -ku user:pass &lt;A href="https://localhost:8089/servicesNS/admin/search/search/jobs/export" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/search/jobs/export&lt;/A&gt; -d search="search 2016/02/26 03:00:01,some_search_string" -d output_mode=csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Mar 2016 15:36:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-searching-via-REST-API-in-a-distributed-search-environment/m-p/225401#M66486</guid>
      <dc:creator>petreb</dc:creator>
      <dc:date>2016-03-18T15:36:59Z</dc:date>
    </item>
  </channel>
</rss>

