Splunk Search

BUG : macros do not expand within 'map'

jonuwz
Influencer

If I create a simple macro called 'test' defined as

* | head 1 | eval text="boo" | fields text

Then run a search using map :

* | head 5 | map search="search `test`" | table text

I would expect to see 5 lines with text="boo"

What I actually see is a warning that reads :

Unable to run query '`test`'.

Is there a limitation in map when it comes to macro expansion ?

Tags (1)
1 Solution

mzax
Splunk Employee
Splunk Employee

Should not. It's a bug. SPL-66265 was created.

Workaround:
Promote the macro from the user to the app level = Change the macro permissions from Private to app or all apps.

View solution in original post

mzax
Splunk Employee
Splunk Employee

Should not. It's a bug. SPL-66265 was created.

Workaround:
Promote the macro from the user to the app level = Change the macro permissions from Private to app or all apps.

Get Updates on the Splunk Community!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...