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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...