Getting Data In

Problem getting a new index in Splunk v4.0.X to work properly

rnutting24
Engager

Hi,

I just created a new app and wanted to point my network inputs to another index, managed by my app. So, I modified my inputs.conf and indexes.conf files in my $SPLUNK_HOME/etc/apps/MYAPP/local/ directory to use the new index:

indexes.conf:

[custom_index] coldPath = $SPLUNK_DB/custom_index/colddb disabled = 0 homePath = $SPLUNK_DB/custom_index/db thawedPath = $SPLUNK_DB/custom_index/thaweddb

inputs.conf

[udp://20000] index = custom_index disabled = false sourcetype = custom

I restarted Splunk from the WEB UI and from the command line. When I went to see if stuff was indexing in my new index it was, but I didn't see any of the data available to my new app. Permissions are set correctly for the index and when I look at the "Event_count" in the manager window, the number is growing! Is there something I am missing? I am using the free version of splunk (v4.0.6) but I don't believe that has anything to do with my problem. I can use the default "main" index fine but I would like to use my own separate indexes for certain splunk apps. Any help would be appreciated.

Thanks, Ray

Tags (1)
1 Solution

the_wolverine
Champion

Assuming that the events made it to your custom index, have you verified that you are actually searching on that index?

To be sure, specify the custom index in your search terms:

index=custom_index

Since its a new index it is probably ok to search across "All Time" just to be sure the events are there but maybe improperly timestamped.

If you want to be able to search this custom index by default, you'll need to add it as one of the default indexes to search for the role in question. This is done by editing your authorize.conf file. For example:

[role_user]
srchIndexesDefault = main;custom_index

View solution in original post

0 Karma

the_wolverine
Champion

Assuming that the events made it to your custom index, have you verified that you are actually searching on that index?

To be sure, specify the custom index in your search terms:

index=custom_index

Since its a new index it is probably ok to search across "All Time" just to be sure the events are there but maybe improperly timestamped.

If you want to be able to search this custom index by default, you'll need to add it as one of the default indexes to search for the role in question. This is done by editing your authorize.conf file. For example:

[role_user]
srchIndexesDefault = main;custom_index
0 Karma

rnutting24
Engager

The authorize.conf file was what I was missing. Guess I forgot the most important part 🙂

Thanks for the help!

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

you can also edit the default indexes for a role in the Manager GUI under "Roles".

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...