Hello Members! I have been attempting to get search results using the splunk-sdk for node.js. I am using version 24. of node. I have and can use the Python splunk-sdk without issue, works well! I have been having no joy with the node.js splunk-sdk. I can easily create a search in node, lgin in to splunk via the sdk, and return a sid - no problem there. But, I want to get the results of the search using the retreived sid. So far, even with AI and internet help, I have been unable to get the results . I always get "unhandled errors" - I have tried using an "async myFunc()" etc, no dice. My goal here is to: have a function that gets a sid, and then another function that using the side to get search results. My over all plan is this: Get a webhook POST from a Splunk alert, get the sid from the payload, use this sid to perform a GET request to return results. I am using a "server" created by node.js. The whold process above works fine with Python and Flask. I want to have persistent data on my "web page", so it is my understaning that JavaScript/Node has more "capability". Also I do have "express" installed in my node environment. It is my understanding that using "promisify" is deprecated - I have not got that to work either. Whata am I missing in terms of getting search results using the splunk-sdk for node? Thanks So Much, eholz1 - frustrated!
... View more