FL1GHT5 Lab • Homelab

Centralize Home Lab Logs with Loki and Grafana

Who This Is For

Intermediate.

Think of it like a shared family group chat instead of texting five people separately. One place to search "who said what and when" instead of digging through five different phones.

What You'll Build

Search Docker and Linux logs from one Grafana interface instead of multiple SSH sessions.

Prerequisites

Logs vs. Metrics

Metrics tell you something is wrong; logs tell you why. Centralized logging closes that gap.

Loki Architecture

Deploy Loki

$services:
$ loki:
$ image: grafana/loki:latest
$ ports: ["3100:3100"]

Ship Docker Container Logs

Configure the Docker daemon's logging driver to the Loki driver, or run a shipper container that reads container logs directly.

Label Design

Useful Searches

Alert From Logs

Grafana can alert directly on Loki query results, e.g. more than N auth failures in 5 minutes.

Security & Backup Notes

Troubleshooting

Lab Finish Line

Search Docker and Linux logs from one Grafana interface.

What to Build Next

Planning a business implementation?

Explore our infrastructure and systems services.

View services