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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...