Getting Data In

a single forwarder to two different indexer

SplunkCSIT
Communicator

Can we forward logs to two different indexer, if it a manual task such that to change at the inputs.conf and outputs.conf or auto at the Splunk Web itself? thks
e.g
Logs1 to indexer1
logs2 to indexer2

Tags (1)
0 Karma
1 Solution

melonman
Motivator

I hope this helps:

http://docs.splunk.com/Documentation/Splunk/6.0.2/Forwarding/Routeandfilterdatad

you have to configure props.conf, transforms.conf, outputs.conf. The step is shown in the doc above.
In your canse, you probably need to create multiple stanza with source in props.conf:
[source::YOUR_LOG1_PATH] to set specific log1 files to be sent to Indexer1
[source::YOUR_LOG2_PATH] to set specific log2 files to be sent to Indexer2
and so on.

View solution in original post

linu1988
Champion

Hello,
It's very easy.

in outputs.conf

[tcpout:indexer1]
server=Y.Y.Y.Y:9997
[tcpout:indexer2]
server=X.X.X.X:6666

for more info you can refer outputs.conf.spec file in your splunk instance.

Thanks

melonman
Motivator

I hope this helps:

http://docs.splunk.com/Documentation/Splunk/6.0.2/Forwarding/Routeandfilterdatad

you have to configure props.conf, transforms.conf, outputs.conf. The step is shown in the doc above.
In your canse, you probably need to create multiple stanza with source in props.conf:
[source::YOUR_LOG1_PATH] to set specific log1 files to be sent to Indexer1
[source::YOUR_LOG2_PATH] to set specific log2 files to be sent to Indexer2
and so on.

linu1988
Champion

any change forwarders need to restart

0 Karma

SplunkCSIT
Communicator

thks, if it true that it is not able to configure the multiple stanza from the GUI and need to do it manually thru the inputs.conf, right? Because the moment i configured my data inputs at the GUI, it will start to send over to indexer1 by default. If i done it manually at inputs.conf, do i need to restart the Splunk forwarder to take effect or i will take effect immediately upon changes at inputs.conf?

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!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...