Getting Data In

How to restrict specific data to be indexed locally, not interrupting data being forwarded and indexed on remote servers?

sameera123
Explorer

I have a small scale Splunk Enterprise instance installed on one server which does not index the data locally. Data is pointed to a central server to index it. Outputs on that server are configured/polled through deployment server. However, I now want to configure inputs which need to be indexed locally without disturbing the existing outputs.conf. If someone helps me with ideas, it would be a great help.

0 Karma

gcusello
SplunkTrust
SplunkTrust

See this
http://docs.splunk.com/Documentation/Splunk/6.4.1/Forwarding/Routeandfilterdatad#Configure_selective...
there are many examples:
- Index one input locally and then forward the remaining inputs
- Index one input locally and then forward all inputs
I used it.

Bye.
Giuseppe

0 Karma

sameera123
Explorer

Thanks Giuseppe!! I too got this option. but the thing is inorder to implement this option i should edit my outputs.conf which i dont like to since after a deploy poll push it may get change ..

Can we restrict to an app to send the data to dedicated indexer or local?

I mean to ask can we create outputs.conf where we can specify the data should index data locally in app?

0 Karma

gcusello
SplunkTrust
SplunkTrust

To implement a selective indexing, you have to configure the outputs.conf file and then ALL the inputs.conf stanzas (each one)!
When you insert the command
_TCP_ROUTING = my_new_route
in one stanza of inputs.conf file, the input is locally indexed or sent to the remote indexers.
otherwise if you don't insert the above command in a stanza, the inputs of the stanza are both locally indexed and sent to the remote indexers (and there is a doble license consumption!).

In outputs.conf you configure only the servers to send logs, the destination (local or remote) must be specified in each inputs.conf stanzas.

Bye.
Giuseppe
P.S.: please accept the answer if you like 😉

0 Karma

sameera123
Explorer

I dont think we need to change all other inputs stanza's with the _TCP_Routing if you have already specified defaultGroup as reomote server(indexer).

Can we create dedicated outputs.conf under the app where we need the inputs which needs the data index locally?if we do so the precedence goes to system/local or app/local since we have the inputs localy in the app?

General precedence s system /local but not sure about in case of above condition occurs...

Please clarify

0 Karma

gcusello
SplunkTrust
SplunkTrust

I don't like to have more outputs.conf!
Everyway try with the dafault group, I found that when I don't insert _TCP_ROUTING ... logs are sent to alla the indexers (local and remote).
Bye.
Giuseppe

0 Karma

gcusello
SplunkTrust
SplunkTrust

if you're satisfied of the answer, please, accept the answer.
Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...