Splunk Dev

What is a suggested method for accessing Splunk API via Custom REST Endpoint?

nohc
Engager

Hello,

I have setup a Splunk app that has Custom REST Endpoints which make Splunk API calls, currently via the python requests module.  I am authenticating to the API by grabbing the session key via the the Custom REST Endpoint's handler.  This works but I am wondering if either the SDK or Splunk python libraries can handle this a little more gracefully or not?  I noticed when building the dashboards that I can just call service.METHOD in SplunkJS to hit the Custom REST Endpoints so wondering if there is a python class/method that handles the authentication, etc such as this.  

Thanks

Labels (2)
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...