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,

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...