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!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...