Splunk Dev

How do I pass session from Js SDK to custom Rest Python script?

jbrocks
Communicator

Hi all,

I have a Splunk App with React and JS SDK, that calls a custom REST endpoint, that calls a Python script, which uses Splunk Python SDK. Is there a way to pass the session from the logged in User using the Dashboard from JS/REST to the Python script, so that I do not need to write the authentication details for the Python SDK connection in a file?

Best regards!

Labels (4)
0 Karma
Get Updates on the Splunk Community!

Infographic provides the TL;DR for the 2023 Splunk Career Impact Report

We’ve been shouting it from the rooftops! The findings from the 2023 Splunk Career Impact Report showing that ...

Splunk Lantern | Getting Started with Edge Processor, Machine Learning Toolkit ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...