talira

Promtail

Agent that ships local logs to Grafana Loki

open sourceApache-2.0self-hostablefree

Promtail's makers archived or ended it on 2 Mar 2026.

Promtail reached end of life on March 2, 2026; Grafana provides no further support or updates, and all development moved to Grafana Alloy.

Promtail is the log shipping agent that Grafana Labs built for Grafana Loki: deployed on every machine, it discovers log files and the systemd journal, attaches labels to each log stream using Prometheus-style scrape and relabel configs, and pushes batches to Loki or Grafana Cloud. It is deprecated: Grafana put it in long-term support from February 13, 2025, and it reached end of life on March 2, 2026, with no further fixes or updates; all new development happens in Grafana Alloy, whose convert command migrates a Promtail config in one step. Its code lived in the Loki repository (Apache-2.0) until it was removed from the main branch in March 2026. The lambda-promtail client isn't part of the deprecation.

Problems it solves

  • tail log files on each server and push them to Loki with labels
  • attach Kubernetes pod and namespace labels to container logs before they reach Loki
  • read the systemd journal and forward it to a central log store
  • relabel or drop log streams before shipping them, the way Prometheus relabels targets
  • resume shipping logs from where it stopped after the agent restarts
  • ingest old gzipped log files into Loki
  • parse log lines to set labels or fix timestamps before they're stored
  • find out what replaces the log agent we use for Loki now that it's end of life

Features

  • discovers log files with static and Kubernetes service discovery
  • attaches labels to log streams with scrape_configs and relabel_configs
  • tails local log files and the systemd journal
  • pipeline stages to add or update labels, fix timestamps and rewrite log lines
  • reads .gz, .z, .bz2 and .tar.gz compressed files
  • positions file to resume after a restart
  • batches log lines and pushes them to Loki or Grafana Cloud
  • web console with /ready and /metrics endpoints

Limitations

  • Reached end of life on March 2, 2026: no more fixes, security updates or commercial support, and Grafana says to migrate to Grafana Alloy1
  • Only static and Kubernetes service discovery: it runs on each machine and doesn't discover targets on other machines2
  • Can't read .zip files or follow log rotation of compressed files: it decompresses .gz, .z, .bz2 and .tar.gz files2

Alternatives

The same job

These do what Promtail does.

  1. Grafana Alloy OpenTelemetry Collector distribution with programmable pipelines
  2. Fluent Bit Fast and lightweight telemetry agent for logs, metrics and traces
  3. Fluentd Open source data collector for unified logging layer
  4. Vector A lightweight, ultra-fast tool for building observability pipelines
  5. Datadog Agent Main repository for Datadog Agent

Compare Promtail with the top 3