Getting Data In

can I configure universal forwarders to forward to multiple splunk indexers?

csclement
Engager

I tried to add more than one forward server to an universal forwarder. But it seems that only one can stay active.

root@splunk01:# /opt/splunkforwarder/bin/splunk list forward-server
Active forwards:
a.b.c.d:9997
Configured but inactive forwards:
192.168.100.100:8384
forwarder.splunkstorm.com:9997

Is it possible to let the universal forwarder forward logs to more than one indexer?

furthermore, can I configure universal forwarder to forward some logs to one forward server, and other logs to another forward server?

Tags (1)
0 Karma
1 Solution

asimagu
Builder

try this in outputs.conf

[tcpout]
defaultGroup = default-autolb-group

[tcpout:default-autolb-group]
autoLB = true
autoLBFrequency = 31
server = ip_server1:9997,ip_server2:9997
useACK=true

View solution in original post

asimagu
Builder

try this in outputs.conf

[tcpout]
defaultGroup = default-autolb-group

[tcpout:default-autolb-group]
autoLB = true
autoLBFrequency = 31
server = ip_server1:9997,ip_server2:9997
useACK=true

dwaddle
SplunkTrust
SplunkTrust

Since it worked, can you please accept the answer as correct by clicking the checkbox to the left? Thanks!

jonthanze
Explorer

It worked !

it just needed a moment to have the changes occurs.

Thanks guys !

0 Karma

linu1988
Champion

did you check for all the other factor between the forwarder and second ip_server2?

telnet from the forwarder if they are able to connect. And if you want all events present in both the server remove the autoLB=true option.

0 Karma

jonthanze
Explorer

Hi

I tried this, but it still doesn't change the fact that my second indexer appears as inactive forwards.
Can you please help ?

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!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...