Installing Loki On Ubuntu

Install Loki Get the latest version tag of Loki release from GitHub. Then assign version tag to variable. LOKI_VERSION=$(curl -s “https://api.github.com/repos/grafana/loki/releases/latest” | grep -Po ‘”tag_name”: “v\K[0-9.]+’) Create a new directory to store Loki binary and configuration file. sudo mkdir /opt/loki Download archive from releases page of the Loki repository. sudo wget -qO /opt/loki/loki.gz “https://github.com/grafana/loki/releases/download/v${LOKI_VERSION}/loki-linux-amd64.zip” Extract […]