Splunk Enterprise

TCP ROUTING and Indexer Discovery- How to configure?

lrodriguez
Engager

Hello everyone! 

In this scenario i have one Heavy forwarder and one indexer cluster (of course the is a Cluster Manager over there). 

The HF have some inputs configured in this way (inputs.conf): 

[mi_input://List_Deployment_State]

index = endpoint
sourcetype = endpoint
_TCP_ROUTING = ixChabelaGroup

And the outputs were configured in this way (outputs.conf): 

[tcpout]
defaultGroup = ixChabelaGroup
defaultGroup = default-autolb-group

[tcpout:ixChabelaGroup]
server = 192.189.2.25:9997

As you can see the TCP_ROUTING is only sending data to one Indexer and we want to balance the data forwarding to the entire cluster. 

My question is: what would it happen if i enable the indexer discovery in the Heavy Forwarder?  as follows: 

[tcpout:idxc-forwarders]

indexerDiscovery = cluster1

useACK=true

[indexer_discovery:cluster1]

master_uri = https://192.189.2.26:8089

pass4SymmKey = MyUnhashedPasswd

There will be a conflict between the indexer discovery and the _tcp_routing declared? 

Or what is the proper way to configure the indexer discovery in my HF?

Thanks in advance for your support. 

 

Labels (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

It's not clear what will happen if _TCP_ROUTING references a name not in outputs.conf, but probably won't be what you want.  I suggest removing _TCP_ROUTING settings from all inputs.conf files unless there is a need for input-specific routing.  Then the settings in outputs.conf will control how data is sent to the indexers.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

It's not clear what will happen if _TCP_ROUTING references a name not in outputs.conf, but probably won't be what you want.  I suggest removing _TCP_ROUTING settings from all inputs.conf files unless there is a need for input-specific routing.  Then the settings in outputs.conf will control how data is sent to the indexers.

---
If this reply helps you, Karma would be appreciated.

lrodriguez
Engager

What do you think if i keep the two configurations in the same stanza (indexer discovery and _tcp_routing) ?
It will cause any kind of conflict?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Indexer discovery and _TCP_ROUTING are not in the same stanza - they're not even in the same files.  Get rid of _TCP_ROUTING.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...