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!

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 ...