Loki

Quick Reference

# LogCLI - Loki command line interface
logcli query '{job="varlogs"}'
logcli query '{job="varlogs"} |= "error"'
logcli labels
logcli series '{job="varlogs"}'

# Check Loki status
curl localhost:{loki-port}/ready
curl localhost:{loki-port}/metrics | head

Why Loki?

  • Cost-effective - Only indexes labels, not full text

  • Prometheus-native - Same label model, similar query language

  • Scalable - Horizontally scalable, cloud-native

  • Simple - Easier to operate than ELK stack

TODO: Architecture, comparison to ELK, deployment modes