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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...