Getting Data In

What is the best way to update a KV store using automation?

Papoose1992
Observer

All,

 

What is the best way to update a KV store using automation? Python script or APIs. I am looking to take data from logs from a file and update a KV store based on that data or extract. 

Labels (5)
Tags (3)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@Papoose1992 

Here I suggest creating Python Script which calls Splunk KV Store Endpoints (APIs) as per the requirement and using the python script in automation.

Create a method or Class in Python which can be reusable and fulfill all KV Store related requirements for Automations.

Please check the below link for Splunk REST endpoints for KV Store. 

https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/kvstore/usetherestapitomanagekv/

I hope this will help you.

Thanks
KV


If any of my replies helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

0 Karma
Get Updates on the Splunk Community!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Deprecation of Splunk Observability Kubernetes “Classic Navigator” UI starting ...

Access to Splunk Observability Kubernetes “Classic Navigator” UI will no longer be available starting January ...