Getting Data In

How can I forward data from UniversalForwarder for 2 instances?

Klimdy
Explorer

I have universal forwarder with Splunk_TA_Stream and my app _server_app_audit where in inputs.conf I write _TCP_Routing = mygroup1 or 2 at each app. After that, I write into outputs.conf [tcpout:mygroup1 or 2] server = index1:9997 or 2 at each app but stream sends data to all indexes.

0 Karma

p_gurav
Champion

Can you please give sample configuration files to understand requirement more?

0 Karma

Klimdy
Explorer

inputs.conf in Splunk_TA_Stream on forwarder:

[streamfwd://streamfwd]
_TCP_ROUTING = testGroup
splunk_stream_app_location = https://my_indexer2:8000/en-us/custom/splunk_app_stream/
stream_forwarder_id =
disabled = 0

outputs.conf in Splunk_TA_Stream on forwarder:

[tcpout:testgroup]
server = my_indexer2:9997

and i have a second app on forwarder:

inputs.conf in _server_app_my_app on forwarder:

[monitor:///var/log/audit/audit.log]
_TCP_ROUTING = prodgroup
disabled = false
index = auditd
sourcetype = linux:audit

ouputs.conf in _server_app_my_app on forwarder:

[tcpout:prodgroup]
server = my_indexer1:9997

Before, I had outputs.conf in /local but i deleted it and after that restart splunkforwarder. Deployment server is my_indexer1, i need stream data routing to my_indexer2 and linux:audit to my_indexer1, but stream data is routing on 2 indexer.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Painting a Clearer Picture: Creating Cross-Domain Visibility with AI Canvas

    Thursday, June 25, 2026  |  11AM PDT / 2PM EDT  Duration: 1 Hour (Includes live Q&A) Register to ...

Analytics Workspace deprecation

As of Splunk Cloud Platform 10.4.2604 and Splunk Enterprise 10.4, Analytics Workspace is now deprecated. ...

Splunk Developer Day Recap: Building, Publishing, and Growing on the Splunk Platform

Splunk Developer Day brought the Splunk developer community together for a practical look at what it means to ...