Getting Data In

Which is the best implementation of macros.conf file for both app and TA?

kaumiladani
New Member

I have a macro.conf file containing a macro with definition:
definition = index="SOME_INDEX" AND sourcetype="SOME_SOURCETYPE" both of which dymanic from client side.

The above macro is being used in eventtype.conf (inside TA) and a summaries macro in savedsearch.conf (inside App).

Currently, the macros.conf is in TA and hence the App Inspect shows failure for App as it could not find the given macros.conf file.

As per splunk practices, keeping a same macro file in both app and TA is not recommended.
Also, there is another workaround of using role-based indexing which is a norm but we used macro-based workflow because of the following case:
https://answers.splunk.com/answers/710778/how-do-you-use-macros-in-event-types-on-distribute.html

What is the best practice implementation which should be implemented?
1) Using two macros.conf in App and TA (each having individual macro for savedsearch and eventtype)
2) Request App cert team to allow the scenario as App and TA would always be bundled together on client environment
3) Any other scenario which do not affect the finctionality as well passes Splunk certification?

Tags (1)
0 Karma
Get Updates on the Splunk Community!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...