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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...