Deployment Architecture

Forward Events to Multiple Seperate Indexers

shocko
Contributor

Guys, I wish to collect all events from my windows server security log and send to my main Splunk enterprise instance but also send a subset of events to my test instance. At the forwarder, how could I achieve this?

Tags (1)
0 Karma
1 Solution

rupesh26
Path Finder

Hi @shocko,

You can use _TCP_ROUTING in inputs.conf to achieve this.

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

[tcpout:systemGroup]
server=server1:9997

[tcpout:applicationGroup]
server=server2:9997

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

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

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

Reference
- Route_inputs_to_specific_indexers_based_on_the_data_input
- https://answers.splunk.com/answers/481742/how-can-we-send-data-to-2-different-groups-of-inde.html

Note: Make sure that your forwarder has connectivity to both the indexers.

View solution in original post

rupesh26
Path Finder

Hi @shocko,

You can use _TCP_ROUTING in inputs.conf to achieve this.

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

[tcpout:systemGroup]
server=server1:9997

[tcpout:applicationGroup]
server=server2:9997

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

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

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

Reference
- Route_inputs_to_specific_indexers_based_on_the_data_input
- https://answers.splunk.com/answers/481742/how-can-we-send-data-to-2-different-groups-of-inde.html

Note: Make sure that your forwarder has connectivity to both the indexers.

shocko
Contributor

Thanks so much! That worked 🙂

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...