Download and install Loki
Config file
Create/etc/loki/config.yaml — minimal single-node setup listening on port 4100:
Create directories
systemd service
Create/etc/systemd/system/loki.service:
Enable and start
Verify Loki is listening on port 4100: