Developing for Splunk Enterprise
Highlighted

How to expand macros in search using Splunk Python SDK?

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