Migrating to Loki

Documented migration paths for Loki log collection, chiefly moving agents off Promtail, which reached end of life, to Grafana Alloy.

Migrate from Promtail to Grafana Alloy for Loki

Replacing end-of-life Promtail agents with Grafana Alloy: converting configurations with alloy convert, what the converter cannot carry over, positions files, changed metrics for dashboards, and a staged rollout across hosts and Kubernetes.

Migrate from Grafana Agent to Grafana Alloy for Loki

Moving Grafana Agent Static, Flow and Operator installations that ship logs to Loki onto Alloy after their November 2025 end of life: the documented conversion paths, testing pipelines side by side and avoiding duplicate logs.

Migrating Loki from BoltDB Shipper to the TSDB index

Switching an older Loki cluster to TSDB before Loki 4.0 removes BoltDB: adding a future-dated period_config with schema v13, rolling it out to every component, keeping old periods readable and planning retention so the old index ages out.

Migrating Loki to the Thanos object storage clients

Converting Loki storage configuration for S3, GCS, Azure and filesystem to the Thanos-based clients added in 3.4 and default in 4.0: the use_thanos_objstore switch, new config format, and sharing storage config with Mimir.

Migrating Loki from simple scalable to microservices mode

Moving off simple scalable deployment before Loki 4.0 removes it: running distributed pods alongside SSD on the same storage, Helm values for Distributed mode, zero-downtime cutover planning and the Kubernetes capacity it temporarily needs.

Migrating Loki to Kafka-based ingestion

Moving a running Loki cluster from the direct gRPC write path to Kafka as a durable buffer: the tested two-ingester-set method, capacity for a second full ingester group, topic setup and the experimental support status.

Migrate from Elasticsearch and the ELK stack to Loki

Replacing Elasticsearch or OpenSearch log storage with Loki: rethinking indexed fields as a few labels plus structured metadata, why Grafana discourages the Logstash plugin, moving shippers to Alloy or OpenTelemetry, and running both during cutover.

Sending Amazon CloudWatch Logs to Loki

Moving log analysis off CloudWatch Logs by streaming it to self-hosted Loki through Amazon Data Firehose and Grafana Alloy's Firehose receiver, with labels for log group and account, and what to keep in CloudWatch.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.