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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...