The Grafana and Loki setup helps to feed logs into Loki which has to be visualized by Grafana.
If Grafana has to visualize the logs the Promtail agent has to be installed in the same system. The logs can be system logs, application logs, etc.,
The below Installation script has to be edited and pointed towards the LOKI deployment that was done earlier. Depending on the setup the domain name / IP address of the Loki deployment has to be pointed out.
Below are the lines that must be edited in the installation script and following are the placeholders:
<url-of-your-loki-deployment> - IP or Domain name of your Loki deployment
<name-of-your-log-files> - This is used to separate your logs for queries in Grafana UI
<the-path-to-your-logs> - This is the path of the logs you wish to be parsed by Loki/Grafana