Splunk Search

How can I remove one record from the KV store using a search without reloading the whole thing?

okrabbe_splunk
Splunk Employee
Splunk Employee

How can I remove one record from the KV store using a search without reloading the whole thing?

For example, I know I can do the following

|inputlookup my_lookup | search NOT _key="123345" | outputlookup my_lookup

Is there a more efficient method?

Tags (2)
0 Karma

AkshayPI
Engager

In CLI, run this:

curl -k -u user:pass -X DELETE \
    https://localhost:8089/servicesNS/yourusername/yourappname/storage/collections/data/kvstorecollectio...

Here, the "kvstorecollection" is the name of the KV store collection that you defined in collections.conf

Cheers,
Akshay

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 ...