Getting Data In

Forwarding to multiple indexes

manuarora
Explorer

Hi,

I have following inputs.conf

[script://$SPLUNK_HOME/etc/apps/appa/bin/script1.sh]
index = index1
sourcetype = script1_detail
interval = 86400
TCP_ROUTING = splunk_02

[script://$SPLUNK_HOME/etc/apps/appa/bin/script2.sh]
index = index1
sourcetype = script2_detail
interval = 86400
TCP_ROUTING = splunk_02

And following outputs.conf

[tcpout]
defaultGroup = default-clone-group-splunk-01_9997
disabled = false
isLoadBalanced = False
maxQueueSize = 1000

[tcpout:default-clone-group-splunk-ux_9997]
disabled = false
server = splunk-ux01.domainname.com:9997

[tcpout:splunk_02]
disabled = false
server = splunk-ux02.domainname.com:9997

But my events are not getting indexed can you please help.

Tags (2)
0 Karma

suhprano
Path Finder

Check the logs, see if they're establishing connection to the receivers.

0 Karma

manuarora
Explorer

It was typo in posting question otherwise it is fine in configuration. Forwarder is not working for this particular application otherwise it works fine.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

It would be very helpful if you very carefully checked the file posted and make sure it is exactly the same as you actual configuration, and edit it accordingly if it is not.

0 Karma

Simeon
Splunk Employee
Splunk Employee

In your output, you have "splunk_ux02" instead of the "splunk_02" which is in the inputs.conf. That might possibly be the problem.

Also - does forwarding work without this?

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...