Monitoring Splunk

is this tcp routing configuration valid?

a212830
Champion

Hi,

I want to send data to multiple systems from a specific feed. I have the following TCP_ROUTING command in my inputs.conf - is it valid? I have a stanza setup for each of these, but I'm not seeing the data come into my dev system.

_TCP_ROUTING = eigroup,eiDevgroup

Tags (1)
0 Karma

eashwar
Communicator

You use inputs.conf and outputs.conf to route data to specific indexers, based on the data's input.

Here's an example that shows how this works.

  1. In outputs.conf, you create stanzas for each receiving indexer:

    [tcpout:systemGroup]

    server=server1:9997

    [tcpout:applicationGroup]

    server=server2:9997

  2. In inputs.conf, you use _TCP_ROUTING to specify the stanza in outputs.conf that each input should use for routing:

[monitor://.../file1.log]
_TCP_ROUTING = systemGroup

    [monitor://.../file2.log]
    _TCP_ROUTING = applicationGroup

The forwarder will route data from file1.log to server1 and data from file2.log to server2.

EDIT: What if I want to send one of those feeds to two seperate systems?

inputs.conf

[monitor://.../file1.log]
_TCP_ROUTING = systemGroup

[monitor://.../file2.log]
_TCP_ROUTING = applicationGroup  

outputs.conf

[tcpout:systemGroup]
server=server1:9997, server2:9997
[tcpout:applicationGroup]
server=server1:9997, server2:9997

Yours,

eashwar raghunathan

happy splunking

if this helps you dont forget to vote!! thanks in advance!!
read more @ http://docs.splunk.com/Documentation/Splunk/5.0.2/Deploy/Routeandfilterdatad

0 Karma

a212830
Champion

Sorry, I need to be more specific. It appears that the above example will load-balance to two different servers within the stanza. I want to send it to different two different stanzas.

0 Karma

eashwar
Communicator

hello brother i have edited the above answer!!

0 Karma

a212830
Champion

Thanks. What if I want to send one of those feeds to two seperate systems?

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...