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!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...