Splunk Dev

JavaScript Splunk SDK for KVStore REST endpoints

kostya2216
Observer

Hey, i am trying to write a NodeJS application using Splunks JavaScript SDK and i have a requirement to do some reading/writing to the KVStore, i would prefer not to use SPL (inputlookup/outputlook) and do it using the REST API (KVStore endpoints) but after extensive digging through the splunk-sdk documentation, guides and examples i cannot find anything in the JavaScript Splunk SDK related to the KVStore endpoints.

My initial idea was to extend the splunkjs.Service.Entity and/or splunkjs.Service.Collection but then i thought maybe im missing something and there is a reason this wasn't implemented in the first place or maybe its implemented and somehow i missed it in the documentation.

Can someone please point me in the right direction? Should i stick to my initial idea and extend the entity and collection classes or is there some other way without creating jobs and searches?

Labels (3)
0 Karma

niketn
Legend

@kostya2216 Following Splunk Dev walkthrough will give you an idea on how to achieve this: https://dev.splunk.com/enterprise/tutorials/tutorialusekv/addarecord

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...