All Apps and Add-ons

Where should we put Macro - TA or Main APP

hardikJsheth
Motivator

Hi All,

I have created two apps TA and Main APP. My TA contains many search time extraction, event type and tagging. In order to allow end user capability to change index as required, I have used macro in all the dashboard queries. I had put macro in TA as Main app is dependent on TA. But when I uploaded TA and Main app on Splunk base for certification, they have raised a failure for Main app saying macro definition is unavailable. However this definition is present in the TA with global permission.

I just wanted to know where should I put macro? Should I create macros at multiple places TA and Main app or should I not use macro at all for Index selection.

Let me know the right approach.

0 Karma

nickhills
Ultra Champion

I would have thought that a macro for indexes would be best placed in your main App.

Are you sure the issue was not with the permissions/config in your metadata/local.meta in the App?

If my comment helps, please give it a thumbs up!
0 Karma
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!

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

Ready to make your IT operations smarter and more efficient? Discover how to automate Splunk alerts with Red ...