Knowledge Management

Where to place app-specific macros for proper later app-packaging?

DrFedtke
Explorer

Hi all,

I want to define some app-specific macros (e.g. search macros) and want to make sure that they included in later packing, so they will be delivered with the app. In which file and in which folder do I have to put the macros?
Currently it is unclear to me where those are saved.

Best regards,
Caspar

Tags (3)
0 Karma

krish3
Contributor

Hi DrFedtke,

The best location to put the macros in the app would be on default directory of the app.

$SPLUNK_HOME/etc/apps/APP_NAME/default/macros.conf

This also helps users to customize your macros (If they wish to tweak a bit) they can do that by placing a file in local directory and start playing with it.

$SPLUNK_HOME/etc/apps/APP_NAME/local/macros.conf

Let me know how it goes. 🙂

Cheers,

Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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