Download Loki: Allow exec permissions: Create Loki config file: Put code in the file: Config from here: https://raw.githubusercontent.com/grafana/loki/master/cmd/loki/loki-local-config.yaml Configure Loki as a service: Create user for Loki service: Create Loki service: