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.

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...