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

Try

| rest services/configs/conf-macros|table definition args
Happy Splunking!
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 ...