All Apps and Add-ons

Bundling macros.conf with app

shocko
Contributor

Guys, starting to use Splunk 6.1.4 (we are soon to upgrade to latest). I am creating apps and wondering where I need to place the macros.conf file in order to bundle it with the app? If I create in the UI it seems it is not bundled with the app.

Tags (1)
0 Karma
1 Solution

MuS
Legend

Hi shocko,

put it into the following folder:

$SPLUNK_HOME/etc/apps/<YourAppNameHere/default

This will bundle your macro in the app when using the splunk package app ... command https://docs.splunk.com/Documentation/Splunk/latest/Admin/CLIadmincommands#Commands.2C_objects.2C_an...

Hope this helps ...

cheers, MuS

View solution in original post

0 Karma

MuS
Legend

Hi shocko,

put it into the following folder:

$SPLUNK_HOME/etc/apps/<YourAppNameHere/default

This will bundle your macro in the app when using the splunk package app ... command https://docs.splunk.com/Documentation/Splunk/latest/Admin/CLIadmincommands#Commands.2C_objects.2C_an...

Hope this helps ...

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...