Back to feed
Dev.to
Dev.to
7/23/2026
Migrating from Promtail to Alloy for Log Collection

Migrating from Promtail to Alloy for Log Collection

Short summary

Promtail reached end of life in March 2026, making Grafana's Alloy the supported replacement for shipping logs to Loki. The migration replaces Promtail's YAML scrape configs with Alloy's component-based pipeline using loki.source.*, loki.process, and loki.write. The biggest pitfall is assuming how a host writes logs—detect whether a machine uses systemd journal or log files before configuring, or you may silently collect nothing.

  • Promtail is EOL since March 2026; Alloy is the replacement for Loki log shipping
  • Migration maps scrape_configs to loki.source.journal/file, loki.process, and loki.write components
  • Key pitfall: detect journal vs file logging per host before configuring, not by distro family alone

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more