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!

Using Machine Learning for Hunting Security Threats

WATCH NOW Seeing the exponential hike in global cyber threat spectrum, organizations are now striving more for ...

Observability Newsletter Highlights | March 2023

 March 2023 | Check out the latest and greatestSplunk APM's New Tag Filter ExperienceSplunk APM has updated ...

Security Newsletter Updates | March 2023

 March 2023 | Check out the latest and greatestUnify Your Security Operations with Splunk Mission Control The ...