<?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 to define inputs.conf for selective indexing for data coming via REST API in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-define-inputs-conf-for-selective-indexing-for-data-coming/m-p/443857#M77288</link>
    <description>&lt;P&gt;I have a new data set being pushed via Splunk REST API. Because I am using selective indexing, I have some indexes stored locally, some don't. It's all set via  &lt;CODE&gt;_INDEX_AND_FORWARD_ROUTING&lt;/CODE&gt;.&lt;BR /&gt;
However, it doesn't seem to work for this new data set coming in from the REST API. &lt;BR /&gt;
Others are not via the REST API, and other data show up during the search. &lt;/P&gt;

&lt;P&gt;Here is what I put in as a new stanza in inputs.conf. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/splunk/var/lib/splunk/new-ind/db]
index = new-ind
source = restAPI
sourcetype = web_event
_INDEX_AND_FORWARD_ROUTING = new-ind
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help will be appreciated. &lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2019 15:41:54 GMT</pubDate>
    <dc:creator>danthebiman</dc:creator>
    <dc:date>2019-06-27T15:41:54Z</dc:date>
    <item>
      <title>How to define inputs.conf for selective indexing for data coming via REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-define-inputs-conf-for-selective-indexing-for-data-coming/m-p/443857#M77288</link>
      <description>&lt;P&gt;I have a new data set being pushed via Splunk REST API. Because I am using selective indexing, I have some indexes stored locally, some don't. It's all set via  &lt;CODE&gt;_INDEX_AND_FORWARD_ROUTING&lt;/CODE&gt;.&lt;BR /&gt;
However, it doesn't seem to work for this new data set coming in from the REST API. &lt;BR /&gt;
Others are not via the REST API, and other data show up during the search. &lt;/P&gt;

&lt;P&gt;Here is what I put in as a new stanza in inputs.conf. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/splunk/var/lib/splunk/new-ind/db]
index = new-ind
source = restAPI
sourcetype = web_event
_INDEX_AND_FORWARD_ROUTING = new-ind
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help will be appreciated. &lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 15:41:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-define-inputs-conf-for-selective-indexing-for-data-coming/m-p/443857#M77288</guid>
      <dc:creator>danthebiman</dc:creator>
      <dc:date>2019-06-27T15:41:54Z</dc:date>
    </item>
  </channel>
</rss>

