Getting Data In

How to setup forwarder details in inputs.conf?

Naren26A
Engager

I have existing Universal Forwarder setup for our prod Splunk Enterprise instance. Now, I am trying to setup a dev Splunk instance. I would like to receive data from the same forwarder which is already being used to provide data to prod instances.

I have set the receiver port in my new Splunk instance(lets say host ip as 10.99.1.123) as 9997. And added the same to tcpout servers list as 10.99.1.123:9997 in outputs.conf file of our universal forwarder.

But I am not able to find how to specify the forwarder details in inputs.conf file in my newly created Splunk instance.

Please let me know if the above process is correct and how to setup the inputs.conf file in order to receive data from the Universal Forwarder.

0 Karma

CarsonZa
Contributor

outputs.conf

[tcpout:c]
server=server1:9997

[tcpout:d]
server=server2:9997

inputs.conf

 [monitor://path/file1.log]
 _TCP_ROUTING = c

 [monitor://path/file2.log]
 _TCP_ROUTING = d

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

0 Karma

ddrillic
Ultra Champion

-- But I am not able to find how to specify the forwarder details in inputs.conf file in my newly created Splunk instance.

On the indexer all that you need to do is to specify the receiving port in inputs.conf -

[splunktcp://9997]
0 Karma

ddrillic
Ultra Champion

Btw, if you already here, you might consider increasing the splunktcpin queue from its default of 512 KB to something more substantial - we set it up to 1 GB in dev and close to 3 GBs in prod.

0 Karma

somesoni2
Revered Legend

You basically want to clone the data (get same data to DEV instance that you get in prod right now) OR you've some different set of files/directories that you want to monitor for DEV instance??

In both cases, you'd need to update your outputs.conf and inputs.conf for routing the data appropriately and would need a read to this very useful doc:
http://docs.splunk.com/Documentation/Splunk/7.1.1/Forwarding/Routeandfilterdatad#Configure_routing

0 Karma

woodcock
Esteemed Legend

You configure (actually, just check, it should be there by default) inputs.conf on your Indexer to listen on 9997. You then configure outputs.conf on your forwarder to send to the Indexer. Then you also configure inputs.conf on your forwarder, probably with [monitor://...] stanza, to tell it what to send to the Indexer. Then you restart splunk everywhere and enjoy.

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 ...