Knowledge Management

How to create an index on a kvstore?

rsimmons
Splunk Employee
Splunk Employee

Is there a way to create an index on a kvstore so that indexed based queries will run quickly?

Tags (2)
1 Solution

rsimmons
Splunk Employee
Splunk Employee

We have a stanza called accelerate fields that can be added to collections.conf. Accelerations are similar to database indexes on fields in that they help quickly locate data without having to search every event in a collection each time a search is run. You can create accelerations for one or more fields in a collection. However, accelerations slightly decrease insert performance and they impact disk space.

To accelerate a field, define the acceleration using the following setting in the collection's stanza:

[kvstorecoll]
accelerated_fields.my_accel = {"id": 1}

The example shows the definition of a "my_accel" acceleration for the "id" field sorted in ascending order in collections.conf.

View solution in original post

rsimmons
Splunk Employee
Splunk Employee

We have a stanza called accelerate fields that can be added to collections.conf. Accelerations are similar to database indexes on fields in that they help quickly locate data without having to search every event in a collection each time a search is run. You can create accelerations for one or more fields in a collection. However, accelerations slightly decrease insert performance and they impact disk space.

To accelerate a field, define the acceleration using the following setting in the collection's stanza:

[kvstorecoll]
accelerated_fields.my_accel = {"id": 1}

The example shows the definition of a "my_accel" acceleration for the "id" field sorted in ascending order in collections.conf.

View solution in original post

.conf21 Now Fully Virtual!
Register for FREE Today!

We've made .conf21 totally virtual and totally FREE! Our completely online experience will run from 10/19 through 10/20 with some additional events, too!