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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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