Getting Data In

How to define inputs.conf for selective indexing for data coming via REST API

danthebiman
New Member

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 _INDEX_AND_FORWARD_ROUTING.
However, it doesn't seem to work for this new data set coming in from the REST API.
Others are not via the REST API, and other data show up during the search.

Here is what I put in as a new stanza in inputs.conf.

[monitor:///opt/splunk/var/lib/splunk/new-ind/db]
index = new-ind
source = restAPI
sourcetype = web_event
_INDEX_AND_FORWARD_ROUTING = new-ind

Any help will be appreciated.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...