Splunk Dev

How to expand macros in search using Splunk Python SDK?

mikesmyk
New Member

Is there a way to expand all macros of a search with the python SDK?
In the end we want to have the whole search text in a python variable to modify it.

So far our solution is to get the search text using the splunk SDK and then search for macros and replace them with the definition of the macro, which we have to get separately with the SDK.
What we like to have is some function, that returns the search text with all macros expanded.

Is there something like this in the SDK which we did not found so far?

Splunk Enterprise Version: 6.6.4

Thanks in advance

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