- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to access lookup with Splunk JS SDK?
datphamtat
Explorer
03-31-2022
01:42 AM
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.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
mcmaster
Communicator
04-11-2022
08:42 AM
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.
