For full document check this link: https://blue-v3n0m.blogspot.com/2022/05/automate-loki-using-splunk.html
This application depends on 3 addons, 2 of them are Custom Visualization. You have to install these addons on the search head that has Loki app installed on it:
Only one setup is required, set the MACRO of loki_index to a specific index
Settings --> Advanced search --> Search Macros --> App (Loki_App) --> search for loki_index and set it to the index
fixed some typo
As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.