Splunk Search

How do I query a macro for it's definition?

fdarrigo
Path Finder

I would like to query an app's macros and return the macro attributes such as the name and the definition. Can someone point me in the right direction?

Tags (3)

dcarmack_splunk
Splunk Employee
Splunk Employee
| rest /servicesNS/-/-/admin/macros splunk_server=local | search title=<name of macro> 

renjith_nair
Legend

Try

| rest services/configs/conf-macros|table definition args
---
What goes around comes around. If it helps, hit it with Karma 🙂
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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