
Grafana Loki Has a Free Log Aggregation System That Won't Bankrupt You
Elasticsearch is the default choice for log aggregation. It is also expensive, resource-hungry, and complex to operate. Grafana Loki is the anti-Elasticsearch : it indexes only labels (not full text), stores logs in cheap object storage, and runs on a fraction of the resources. Why Loki Wins on Cost Elasticsearch Loki Indexing Full-text (expensive) Labels only (cheap) Storage Hot SSD required S3/GCS/MinIO RAM per GB logs ~2-4 GB ~0.5 GB Operational complexity High (shards, mappings) Low (just labels) Monthly cost (1TB logs) $500-2,000 $50-200 Getting Started 1. Run Loki + Grafana # docker-compose.yml version : " 3" services : loki : image : grafana/loki:latest ports : - " 3100:3100" volumes : - ./loki-config.yml:/etc/loki/config.yaml command : -config.file=/etc/loki/config.yaml grafana : image : grafana/grafana:latest ports : - " 3000:3000" environment : - GF_AUTH_ANONYMOUS_ENABLED=true 2. Ship Logs with Promtail # promtail-config.yml server : http_listen_port : 9080 clients : - url :
Continue reading on Dev.to DevOps
Opens in a new tab



