Splunk Search

How to set a backup TCPOUT group in Outputsconf

morethanyell
Builder

Hi,

From my understanding, the param `defaultGroup` under the stanza `[tcpout]` in `outputs.conf` can be set to a comma-separated list based on what's defined in `[tcpout:<groupn>]` stanzas, i.e.:

[tcpout]
defaultGroup = group1, group2, group3, group4

[tcpout:group1] server=10.1.1.197:9997
[tcpout:group2] server=myhost.Splunk.com:9997
[tcpout:group3] server=myhost.Splunk.com:9997,10.1.1.197:6666
[tcpout:group4] server=foo.Splunk.com:9997

Okay. But when we define `outputs.conf` like this, the forwarder will route all traffic to the target servers in all groups defined in that param `defaultGroup`.

How do we define a "backup" group where in the traffic is rerouted to the "next" group in case the default groups aren't reachable?

0 Karma
1 Solution

isoutamo
SplunkTrust
SplunkTrust
At least I haven’t hear or read this kind of feature. Probably you should write this to ideas.splunk.com.

r. Ismo

View solution in original post

morethanyell
Builder

Those aren't indexers. They are intermediate heavyforwarders that represent regions. I.e.

# North America UF Outputsconf

[tcpout]
defaultGroup = NA

[tcpout:EMEA] server = mycompany-emea-hfa:9997, mycompany-emea-hfb:9997
[tcpout:APAC] server = mycompany-apac-hfa:9997, mycompany-apac-hfb:9997
[tcpout:NA] server = mycompany-na-hfa:9997, mycompany-na-hfb:9997
[tcpout:LATAM] server = mycompany-latam-hfa:9997, mycompany-latam-hfb:9997

 These intermediate HFs all output to SplunkCloud. I was thinking how I could route traffic to LATAM if say, the servers in NA are down.

0 Karma

isoutamo
SplunkTrust
SplunkTrust
At least I haven’t hear or read this kind of feature. Probably you should write this to ideas.splunk.com.

r. Ismo

morethanyell
Builder

Thank you. Just did.

EID-I-644

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

Actually there is one way to do this, but it requires that you are using multisite cluster with indexes discovery feature enabled. Then you can just add on your CM: 

splunk edit cluster-config -forwarder_site_failover site1:site2

r. Ismo

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Rather that use multiple groups of one indexer each, use a single group of multiple indexers.  The UF will send to each indexer in turn, skipping those that are not available.

[tcpout]
defaultGroup = group1

[tcpout:group1]
server=10.1.1.197:9997,myhost.Splunk.com:9997,foo.Splunk.com:9997

If your indexers are clustered then consider using Indexer Discovery, which achieves the same effect.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...