Knowledge Management

Query to bring the macro dependency?

Shan
Builder

Hi All,

Can someone help me with query that gives the macro dependency(ex Dashboard, reports etc ).
When I fire that query in search window, I need information like in what all dashboard, reports etc that macro is used.

Thanks in advance...

Labels (1)
Tags (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

There is no one query to do that. You'll have to search all saved searches, dashboards, and eventtypes (each is a different REST call) for instances of the macro.

| rest /servicesNS/-/-/saved/searches | search search="*macroName*"
| rest /servicesNS/-/-/ui/views | search eai:data="*macroName*"
| rest /servicesNS/-/-/saved/eventtypes| search search="*macroName*"
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...