Splunk Dev

How to read session key from stdin on Windows deployments?

christoffertoft
Communicator

Hi

Im developing an app that supplies a scripted input to Splunk. When its run (on linux machines), it reads the session key from stdin :

 

 

 session_key = sys.stdin.readlines()[0]

 

 

This does not seem to work for Windows based deployments

christoffertoft_0-1647358336252.png

 

Does anyone have an idea of how to do this on windows?

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

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...

Enterprise Security Content Update (ESCU) | New Releases

In April, the Splunk Threat Research Team had 2 releases of new security content via the Enterprise Security ...