Splunk Dev

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



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.  


Labels (2)
Get Updates on the Splunk Community!

Optimize Cloud Monitoring

  TECH TALKS Optimize Cloud Monitoring Tuesday, August 13, 2024  |  11:00AM–12:00PM PST   Register to ...

What's New in Splunk Cloud Platform 9.2.2403?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2403! Analysts can ...

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...