Splunk Dev

How to access lookup with Splunk JS SDK?

datphamtat
Explorer

Hi everyone,

I am trying to develop some apps in spunk with React and JS. I want to access Splunk lookup and get data from lookup but I do not see and function in SDK to help collect the lookup file.

https://docs.splunk.com/Documentation/JavaScriptSDK 

So how can I get the lookup file?. I think I can make a new search "| inputlookup" and get the search result.

Labels (2)
Tags (1)
0 Karma

mcmaster
Communicator

You have two options in general for this

  • You can use an inputlookup search, as you suggested
  • You can create a custom rest endpoint to return the lookup contents to you

Running an inputlookup search is probably simpler, so if that option works for you, I'd suggest that.

0 Karma
Get Updates on the Splunk Community!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...