KB 72 – Adding an Index to Default Search Macro
KB 72 (Splunk): Adding an Index to Default Search Macro
Category: Recommendation
Platform: Splunk
Priority: Normal
Version: 1 from 23.03.2021
Description
The built in search macros for PowerConnect sap-aba and sap-java only specify the sourcetype they do not specify the index, by default the index is recommended to be added to the default search list in the role that contains the users who will access the index.
The default macros can be accessed through Settings → Advanced Search
![](../__attachments/3092217921/image-20210518-200201.png?inst-v=ac5eec74-b94c-4536-9f14-31cf6d61e6ba)
Click on “Search macros”
![](../__attachments/3092217921/image-20210518-200248.png?inst-v=ac5eec74-b94c-4536-9f14-31cf6d61e6ba)
This will show you all Macros, enter ‘sap’ in to the search bar and click on the magnifying glass
![](../__attachments/3092217921/image-20210518-200412.png?inst-v=ac5eec74-b94c-4536-9f14-31cf6d61e6ba)
Click on the Macro sap-abap or sap-java and edit the Macro to add the text ‘index=<your index> and replace <your index> with the name of your index i.e. index=sap, if you don’t know the name of your index check with your Splunk administrator. Then click Save.
![](../__attachments/3092217921/image-20210518-200526.png?inst-v=ac5eec74-b94c-4536-9f14-31cf6d61e6ba)
This macro is used by default in all standard PowerConnect dashboards, so they will all search this index by default. We strongly recommend you use this macro to search PowerConnect data.
Product version
Product | From | To |
PowerConnect [NW,S4HANA,S4HANA Cloud] | [Affected version from] | [Affected version to] |