Monitoring
Centralized Logs with Grafana Loki and Promtail
- Author :Liam K.
- Date :March 08, 2026
- Time :13 minutes
Why Loki?
Loki stores logs as compressed chunks indexed by labels. It's cost-effective and integrates with Grafana for queries and dashboards.
Install Promtail
bash
curl -O -L "https://github.com/grafana/loki/releases/download/v2.8.2/promtail-linux-amd64.zip"
unzip promtail-linux-amd64.zip
sudo mv promtail-linux-amd64 /usr/local/bin/promtail
sudo chmod +x /usr/local/bin/promtailMinimal Promtail Config
yaml
server:
http_listen_port: 9080
clients:
- url: http://loki:3100/loki/api/v1/push
scrape_configs:
- job_name: system
static_configs:
- targets: [localhost]
[...]Command truncated. Copy to view full command.
Technical Author

Liam K.
System administrator and technical writer specializing in server infrastructure, security and deployment. Creating comprehensive guides to help you master server administration.
Related Guides
Ansible Dynamic Inventory for AWS at Scale
March 08, 2026
Ansible Role Testing with Molecule and CI Pipelines
March 08, 2026