Splunk Enterprise

Data from forwarder going to wrong index

mbernardo
New Member

I am monitoring three scripts using the Universal forwarder and my inputs.conf looks like this:

[script:///opt/splunkforwarder/etc/apps/stax/bin/splunk-ram-cust1.sh]

disabled = false

interval = 60

sourcetype = ram_cust1

index = cust1

[script:///opt/splunkforwarder/etc/apps/stax/bin/splunk-disk-cust1.sh]

disabled = false

interval = 60

sourcetype = disk_cust1

index = cust1

[script:///opt/splunkforwarder/etc/apps/stax/bin/splunk-cpu-cust1.sh]

disabled = false

interval = 60

sourcetype = cpu_cust1

index = cust1

On the Indexer I am creating an index called 'cust1' to match what the Forwarder will be sending before I add the Monitor for the scripts. After I add the Monitor the data is received on my Indexer, but the Index of the first entry of the Ram Script and all entries from the cpu script will have an index of main. Why would this be happening?

Tags (4)
0 Karma

Michael
Contributor

don't know if this was ever answered, but I think it might lie in putting an index.conf file in /opt/splunk/etc/system/local/ that reads:

[ram_cust1]
homePath = $SPLUNK_DB/cust1/db
coldPath = $SPLUNK_DB/cust1/colddb
thawedPath = $SPLUNK_DB/cust1/thaweddb

[disk_cust1]
homePath = $SPLUNK_DB/cust1/db
coldPath = $SPLUNK_DB/cust1/colddb
thawedPath = $SPLUNK_DB/cust1/thaweddb

[cpu_cust1]
homePath = $SPLUNK_DB/cust1/db
coldPath = $SPLUNK_DB/cust1/colddb
thawedPath = $SPLUNK_DB/cust1/thaweddb

Get Updates on the Splunk Community!

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

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...