Splunk Search

How to extract and print out the Splunk tokens in python

nimercu
New Member

I have a python script that attempts to get a token from Splunk search result and then build my REST post to TrueSight. I was given https://docs.splunk.com/Documentation/Splunk/7.3.0/Alert/EmailNotificationTokens to extract the values, but clearly, the syntax does not work in python.

Essentially, I am asking how to extract and print out the Splunk tokens in python.

0 Karma
Get Updates on the Splunk Community!

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureThursday, March 27, 2025  |  11AM PST / 2PM EST | Register NowStep boldly ...

Splunk AppDynamics with Cisco Secure Application

Web applications unfortunately present a target rich environment for security vulnerabilities and attacks. ...

New Splunk Innovations Enhance Performance and Accelerate Troubleshooting

Splunk is excited to announce new releases that empower ITOps and engineering teams to stay ahead in ever ...