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!

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

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 ...

AI Adoption Hub Launch | Curated Resources to Get Started with AI in Splunk

Hey Splunk Practitioners and AI Enthusiasts! It’s no secret (or surprise) that AI is at the forefront of ...