Migrate from Elasticsearch and the ELK stack to Loki

Moving log storage from Elasticsearch or OpenSearch to Loki changes how fields are indexed, so the work is mostly data modeling and shipper changes, not a data copy. This page explains what maps, what does not and how to run both during cutover.

On this page

Why moving from Elasticsearch to Loki is a modeling change, not a data copy

If your Elasticsearch, OpenSearch or ELK log store must keep running for security, operations or compliance, and you are weighing Loki as a replacement, plan for a modeling change. Loki indexes only a small set of labels and stores compressed log chunks in object storage, so the migration work centers on redesigning which fields become labels, which become structured metadata, how queries are written and how shippers tag each line. Elasticsearch builds a full-text index over every field, so most of its data model was designed around searching anything, anywhere. Loki was designed around narrowing the search by stream first and then scanning the chunks.

The effort depends on the query surface your teams use today: saved Kibana searches, dashboards, alert rules, detection content that depends on field names, and how long each index must stay searchable. No import tool converts an Elasticsearch index into Loki, so historical data stays in the old store unless you export it and re-ingest it, and that export usually carries the same field-design questions. Confirm with your compliance owners whether the retention period for old data can be met by keeping the old cluster read-only for a set window.

Licensing is context, not a deciding factor on this page. Loki is licensed under AGPLv3. Elastic's default distribution of Elasticsearch and Kibana is under the Elastic License 2.0, with SSPL 1.0 and AGPLv3 as additional options, and OpenSearch is released under the Apache License, Version 2.0. Read the current terms of each product with your legal team, because the terms that apply to your deployment depend on how you distribute and operate it. The Grafana Labs licensing page is the primary source for Loki's terms.

What maps cleanly from Elasticsearch to Loki and what does not

This table pairs common Elasticsearch and Kibana capabilities with their closest Loki equivalents and notes where the Loki side needs a reverse proxy, Grafana Enterprise Logs or work you will have to design yourself. Read each row as a question to answer for your own platform: if the Loki column needs a qualifier, plan for it before cutover.

CapabilityElasticsearch and ELKLoki and GrafanaNotes for migration
Full-text indexing of every fieldIndexes the content of every field by default, so ad hoc text search across all fields works without prior designIndexes only labels; log line content is stored compressed and scanned at query time with LogQL filtersExpect slower broad text scans and plan queries around label selectors first
Indexed fieldsMapped fields with types, many of them queryable and aggregatableA few low-cardinality labels plus structured metadata for higher-cardinality fieldsRedesign field mappings before copying pipelines; too many labels is the most common failure
Discover and dashboardsKibana Discover and dashboards for search, filters and visualizationGrafana Explore and dashboards driven by LogQLRebuild dashboards from queries; field names and aggregations do not translate one to one
Index lifecycle tiersHot, warm, cold and frozen data tiers managed through index lifecycle policiesObject storage for all chunks; retention is set globally, per tenant or per stream selectorMap each lifecycle phase to a retention rule and confirm storage cost assumptions with your provider
Retention deletionLifecycle policies delete indices on scheduleCompactor-applied retention, disabled by default until retention_enabled is setTurn retention on deliberately or logs are kept indefinitely
Multi-tenancySpaces, indices and roles separate teamsTenant IDs sent in the X-Scope-OrgID header when auth_enabled is trueTenant isolation depends on the proxy injecting or validating the header correctly
Single sign-on and authenticationBuilt-in SSO (SAML, OIDC, Kerberos, JWT) in paid tiers, with LDAP and Active DirectoryNo built-in authentication; place an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in frontPlan the proxy as a security component and test it, since Loki itself will not authenticate users
Field-level and document-level securityAvailable in paid Elastic tiers; OpenSearch Security also provides these with maskingNo direct open source equivalent; label-based access control needs Grafana Enterprise LogsIf per-field or per-team restriction is required, either accept tenant-level separation or evaluate Grafana Enterprise Logs
Audit logsAudit logging is a paid Elastic feature; OpenSearch Security includes audit logsAccess logs come from the reverse proxy and Loki components; Loki does not provide a full user audit trail of its ownConfirm with your assessor which audit events you must retain and build them at the proxy layer

How indexed fields become a few labels plus structured metadata

Elasticsearch indexes nearly every field so that any value can be searched, while Loki indexes only labels and stores log line content as compressed chunks in object storage. The migration decision is therefore not a field-for-field copy of your Elasticsearch mappings. Each field must be assigned to one of three places: a small set of stream labels, structured metadata attached to individual log entries, or the log line itself, where it is found with a filter expression. Values with very high cardinality, such as request IDs, trace IDs, user IDs or session tokens, should never become labels. Start by exporting the current index templates and mappings, then list every field your dashboards, alerts and investigations actually filter on. Fields that nobody queries can be dropped or left in the line.

Keep the label set small and stable. Labels usually map to where a log came from, such as namespace, app, environment, cluster or host, and each unique combination of label values creates a separate stream. Grafana Labs does not recommend the logstash-output-loki plugin for new deployments because, in its words, users almost always send too many high-cardinality labels to Loki, since Elasticsearch works very differently. Mapping every Logstash field to a label through that plugin is the design error to avoid. For each candidate label, ask whether its value set is bounded and whether a query needs to select on it before scanning content. Fields that pass this test become labels, and fields that fail it move to the line or to structured metadata. Build a sample of the top fields by cardinality from your current indices to make this decision with data rather than assumptions.

Before cutover, confirm how the label and structured metadata behavior, limits and query syntax apply to the Loki version you will run, using the Loki labels documentation for that release. Then test representative queries that replace your Kibana searches, including a filter on a field that now lives in the line, and measure whether each query stays within acceptable time and cost. Record which fields moved where, because dashboards and alert rules written against Elasticsearch fields will need to be rewritten against the new labels and line filters.

Moving shippers from Logstash, Beats and Elastic Agent to Alloy or OpenTelemetry

Logstash pipelines combine input, filter and output stages, and most of the business logic usually sits in the filter stage: grok patterns, date parsing, field renames, drops and enrichment lookups. Grafana Labs does not recommend the logstash-output-loki plugin for new deployments, because Elasticsearch and Loki model data differently and users often send too many high-cardinality labels. The documented destination is Grafana Alloy as Grafana's supported log shipper, with OpenTelemetry logs over HTTP as an alternative path. Treat the Logstash configuration as a list of requirements rather than a file to port.

  • Filter logic: Grok patterns, mutate operations and conditionals must be rewritten in Alloy's processing components or in the OpenTelemetry Collector's processors. No direct conversion tool for Logstash configurations has been confirmed for this migration, so plan for manual rewriting and test each pattern against real samples.
  • Labels: Decide which fields become Loki labels. Fields that were indexed in Elasticsearch for search usually belong in structured metadata or in the log line, not in labels.
  • Enrichment: Lookups, geo data and dictionary translations need an equivalent step, or they move into a downstream service.
  • Outputs: Logstash often fans out to several destinations. Remove the Loki output from the chain only after the shipper replacement is verified.
  • Delivery guarantees: Confirm how the replacement buffers and retries when Loki is unreachable, and compare it with the persistence settings your Logstash queues use today.

Before cutover, compare event counts and sample parsed fields from old and new pipelines for the same source files, and confirm that dropped or malformed events match the old behavior.

Documented import and export paths for this move

Loki takes data in through a short list of documented routes and is queried through Grafana, so the migration work is mostly about choosing a shipper and a push path. Source-side export options matter for keeping an Elasticsearch or OpenSearch archive that Loki cannot read. Confirm each option against the current docs before you rely on it.

Grafana Alloy as the shipper

Grafana Alloy is Grafana's supported log shipper for Loki and the usual replacement for Filebeat, Logstash shippers and Promtail on hosts and in Kubernetes. Pipelines are written in Alloy's configuration language, so each existing Beats or Logstash input needs a matching source component and label plan. Check the component list in the current Alloy docs for every input type you collect today, such as syslog, journald or container logs.

Loki send data docs

OpenTelemetry OTLP over HTTP

Loki ingests OpenTelemetry logs over HTTP, so a Collector can replace Logstash or Beats pipelines when your platform already standardizes on OpenTelemetry. This route needs a decision on how resource attributes map to Loki labels and which fields become structured metadata. Confirm the OTLP endpoint path and the schema prerequisites for your Loki version before you build the pipeline.

Fluent Bit, Fluentd and Docker driver

Loki documents Fluent Bit, Fluentd and the Docker logging driver as supported senders, which suits teams that already run these agents for container or edge collection. Each agent has its own label and JSON handling, so an Elasticsearch index pattern does not carry over one to one. Pilot one host group with the sender you intend to keep, then compare parsed fields in Grafana against the Kibana view.

HTTP push API for custom senders

The Loki HTTP push API is the supported ingestion route for applications and scripts that write logs directly, including services that currently call the Elasticsearch bulk API. Requests must carry the tenant identifier in the X-Scope-OrgID header when multi-tenancy is enabled, and the write endpoint sits behind your authenticating reverse proxy. Check the push payload format and rate limits in the current docs before converting any bulk indexer.

Loki multi-tenancy docs

Grafana as the query surface

Grafana is the documented way to query Loki with LogQL, so Kibana dashboards and saved searches need to be rebuilt as Grafana panels and Explore queries. Queries are written against labels first, which changes how analysts search for a field value that was previously indexed. Confirm which Grafana datasource settings and access controls apply to your deployment before you hand the view to analysts.

Elasticsearch snapshot as a read-only archive

An Elasticsearch or OpenSearch snapshot preserves indexed logs in a restorable format, which is the practical way to keep history that Loki will not re-ingest. Snapshots can be restored only to a compatible cluster, so the archive remains tied to a version line that you must keep running or plan to restore. Confirm the snapshot repository and restore compatibility rules in the current Elastic or OpenSearch documentation before you retire the cluster.

OpenSearch Migration Assistant is not applicable

OpenSearch Migration Assistant moves data between OpenSearch and Elasticsearch-compatible clusters, and it is not a tool for moving logs into Loki. Do not plan a Loki cutover around it, even though it appears in OpenSearch upgrade guidance. If your source is OpenSearch, use it only for an OpenSearch-to-OpenSearch move and treat the Loki path as a separate project.

The sequence from inventory to decommission

This sequence moves log search from Elasticsearch or OpenSearch to Loki in controlled stages, so each team confirms that queries, alerts and retention still hold before the old cluster is switched off. Each step ends with a named output and a sign-off, and the old archive is kept until the owners agree it can go.

  1. Inventory indices, dashboards and alerts

    The platform owner and the log-using teams list every index pattern, Kibana or OpenSearch Dashboards visualization, saved search, alert rule, ingest pipeline and index lifecycle policy. For each item, record the owning team, the fields it queries, how often it is used and what it is for. The output is a migration register that maps each source to a downstream consumer. Sign-off comes from the platform owner and one representative per team, who confirm nothing important is missing. Ask the team to check for retention rules that are not written down, because those are often the first thing a compliance reviewer asks about.

  2. Run a pilot on one shipper and team

    Choose one log source, such as a single application or host group, and one team that will use the result. Send its logs to Loki through Grafana Alloy or OpenTelemetry while the existing ingest path keeps running, so the team can compare both views. The pilot tests labels, parsing, timestamps and the team's real query habits. The output is a short pilot report listing what worked, what the team could not find and which fields had to change. The team lead and the platform owner sign off before the pilot is widened.

  3. Build the label and structured metadata model

    Decide which fields become stream labels and which stay as structured metadata or parsed fields in the log line. Labels should be low cardinality, such as cluster, namespace, application and environment, because Loki indexes only labels and not the content of the log line. High-cardinality values like request IDs, user IDs or trace IDs belong in structured metadata or are queried by filter. The output is a written label schema with a rule for each field, reviewed against the migration register. The security architect and the platform owner sign off, since labels also determine how access control and tenancy work later.

  4. Run both stacks side by side

    Keep the Elasticsearch or OpenSearch ingest path and the Loki ingest path running together for every source in scope. Dual shipping makes it possible to compare the same events in both systems and to roll back without losing data. Monitor ingestion errors, dropped lines and the volume each path receives on both sides. The output is a parallel-run log showing stable ingestion for each source. The platform owner and the operations lead sign off once every source has run cleanly in both paths for the agreed period, which the team sets in its own plan.

  5. Compare query results and alert behavior

    Run each saved search and dashboard panel against both systems over the same time range and record where counts, fields or timestamps differ. Replay each alert rule as a LogQL rule and confirm that it fires on the same known events, and check notification routing, silencing and recovery messages. Differences caused by parsing, time zones or line splitting are fixed at the source. The output is a parity report with each difference classified as fixed, accepted or open. The owning team and the on-call lead sign off on alert behavior, and the security team signs off on any detection rule.

  6. Cut over dashboards and alerts

    Move each dashboard and alert to Loki in batches, starting with lower-risk items and leaving security and compliance alerts for last. Keep the old definitions in version control and disable them only after the new ones have been live and reviewed. Confirm that access in Grafana matches the access the old system provided, since Loki has no built-in authentication layer and needs an authenticating proxy in front of it. The output is a cutover record listing every migrated item, its date and its owner. Each owning team signs off on its items, and the security lead signs off on access.

  7. Decommission with a retained archive

    Stop ingestion to the old cluster only after every consumer has signed off. Before shutdown, export the data that must be kept for legal, audit or incident needs into an archive in object storage or another format the organization controls, and record its location, format and retention period. Confirm that Loki retention is enabled and set per tenant or stream as the register requires, since retention is disabled by default. The output is a decommission record with the archive location, retention settings and the list of retired indices and rules. The platform owner, the compliance lead and the data owner sign off before the cluster is removed.

Running Elasticsearch and Loki in parallel without duplicate alerts

The parallel period succeeds or fails on one rule: each event should be shipped to both stores, but each alert should fire from exactly one system at any time. Dual shipping is usually the simplest way to get there. Keep the existing agents or Logstash pipelines running, add a second output that sends the same events to Loki through Grafana Alloy, OpenTelemetry Collector or another supported client, and tag each event with a source marker so it can be traced later. Before adding the second output, decide which system owns each alert. Alert rules in Elasticsearch or OpenSearch and log-pattern rules in Loki's ruler should be moved one group at a time, with the original rule disabled only after the Loki rule has been seen to fire on the same test events. Record the owner of every rule in your change log so no alert is silently active in both systems.

Counts are the evidence that the two stores agree. For each source, compare event counts per hour between the Elasticsearch or OpenSearch index and the matching Loki stream, using the labels you chose for that source. Expect small differences from batching, retries and ingestion lag, and agree on a tolerance with the operations team before the comparison starts. Large or persistent gaps usually point to a dropped output, a label that split one stream into many, or a parser that changed field names. Check the Loki side against the per-tenant and per-stream limits that apply to your deployment, because rejected writes look like missing data. Confirm the exact limit names and defaults against the version you run, since they change between releases.

Retention needs its own plan because the two stores age data differently. Keep Elasticsearch or OpenSearch indices under their current lifecycle policies until the audit and legal retention requirements that apply to those logs are documented as met by Loki. Loki retention is disabled by default, so logs are kept indefinitely until you set it, and it is applied by the compactor. Set retention_enabled to true, define retention globally or per tenant or stream selector, and confirm that the compactor is running and has a writable working directory. Each stream rule must be at least 24 hours. Record the retention period for each store in your compliance evidence, and do not decommission the old store until the Loki retention settings have been verified against a restored sample.

What drives the cost and duration of this migration

This table lists the inputs that move the effort of replacing Elasticsearch or OpenSearch with Loki, who pays for each piece of work, and what to ask for in a written quote. Read each row as a question to answer about your current cluster before you request a scope, since the answers decide whether the work is a small cutover or a multi-phase program.

DriverWhy it changes effortHow to keep it down or what to request in a quote
Indices, mappings and index templatesEach mapping must be reviewed to decide which fields become labels, structured metadata or stay in the log line. Many custom mappings mean more design decisions.Ask for a mapping inventory and a written field-to-label decision list before build starts.
Dashboards, saved searches and Kibana visualizationsEach Kibana or OpenSearch Dashboards object is rewritten in Grafana or LogQL. Dashboards built on aggregations need new queries.Ask the vendor to count dashboards by owner and separate ones still in use from stale ones.
Alert rules and watchersAlerts on Elasticsearch queries must be rebuilt as LogQL or Grafana Alerting rules and tested against the same events.Request a list of active alerts with owners and a test plan that compares alert firing during the parallel run.
Log sources and shipper typesBeats, Filebeat, Elastic Agent, Logstash, syslog and application SDKs each need a different replacement path. Each shipper type adds configuration and testing work.Ask for a source inventory grouped by shipper, with host counts and the target Alloy or OpenTelemetry pipeline for each group.
Logstash filters and pipelinesGrok, mutate, date and enrichment filters contain parsing logic that must be ported. The logstash-output-loki plugin is not recommended for new deployments, so pipelines usually move to Alloy or OpenTelemetry processors.Request a filter-by-filter conversion table and identify which filters drive label choices.
Field cardinalityHigh-cardinality values such as request IDs or user IDs used as labels slow Loki and raise storage cost. Elasticsearch tolerates these fields because it indexes full text, so migrated pipelines often need redesign.Ask for a cardinality review of candidate labels with a rule for what goes in structured metadata instead.
Daily ingest volume and retentionVolume sets the Loki deployment mode and object storage size. Retention is set by the compactor and is off by default, so every retention period must be decided explicitly.Request measured daily ingest per index pattern and a written retention schedule per tenant or stream.
Legal hold and historical dataHolds or required historical archives may need Elasticsearch snapshots kept or exported to object storage, which adds a second system to run.Ask whether historical data is migrated, archived or left in place, and who signs off on that decision.
SSO, roles and tenant separationElastic and OpenSearch keep role and field-level rules that must be mapped to Loki tenants (X-Scope-OrgID), an authenticating reverse proxy and Grafana access. Loki has no built-in authentication layer.Request a role-to-tenant mapping and confirm whether label-based access control needs a commercial product or a proxy design.
Loki deployment modeMonolithic mode is documented for up to about 20 GB of logs per day. Simple scalable mode is being deprecated and removed with Loki 4.0. Microservices mode suits very large clusters. Each mode has different hardware and operations work.Choose the mode from measured volume and ask the partner to justify it in writing against the Loki deployment modes documentation.

What usually goes wrong in an ELK to Loki move

Most failed log platform moves trace back to a few habits carried over from Elasticsearch: indexing everything, expecting full-text search everywhere, and assuming security and retention come with the storage layer. Each card below names one risk, why it matters in this move, and the step that prevents it.

High-cardinality labels copied from mappings

Elasticsearch indexes every field, so teams often mirror their mappings as Loki labels. Loki indexes only labels, so user IDs, request IDs or IP addresses as labels create very large numbers of streams and slow queries. Keep labels to a small set of low-cardinality values such as cluster, namespace, app and level, and move the rest into the log line or structured metadata. Review the label list before the first shipper goes live.

Logstash plugin docs

Full-text search expectations dropped

Kibana users often search any word across every field in an index. In Loki, a query must start with label matchers, and text filters scan the chunks that match those labels. Write down the top investigation queries with their time ranges and label sets before cutover, then test each one in LogQL to confirm it returns in a usable time. Some searches will need a different workflow or a narrower scope.

No built-in authentication

Loki has no authentication layer of its own. The Loki documentation says to run an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of it. Teams that expose the push or query endpoints directly, or assume Grafana login covers them, leave ingestion open. Put an authenticating proxy in front of every Loki endpoint and test that unauthenticated requests are refused, including writes from shippers.

Loki authentication docs

Elastic security features in paid tiers

Elasticsearch moved TLS, file and native realms and role-based access control into the free Basic tier in 2019, but single sign-on, Active Directory and LDAP, and field- or document-level security stayed in paid tiers. Teams that relied on those controls need an equivalent design, not a feature toggle. Map every security control in use today to a named owner in the new stack, such as the proxy, Grafana or a tenant rule, and confirm which of them the new design provides.

Elastic subscriptions

Source version lifecycles forcing the timeline

Elastic's end of maintenance dates for the 8.x line and the 9.x line come at different times, and OpenSearch versions stay in maintenance for a limited period. A move that starts without a date can end up running on a line with no fixes. Check the end of life dates for your exact version on the vendor pages and set the cutover window before those dates, not after.

8.x maintenance end
January 15, 2027
Elastic EOL dates

Retention left unconfigured

Loki retention is disabled by default, so logs are kept indefinitely until retention is switched on in the compactor. Teams used to index lifecycle policies may assume old data expires on its own, which leads to growing storage and retention that does not match policy. Set retention explicitly for each tenant or stream before the first production write, and confirm with the legal or compliance owner which periods apply. Each stream rule must be at least 24 hours.

Loki retention docs

Questions teams ask before moving from Elasticsearch to Loki

What does moving from Elasticsearch to Loki cost, and what drives it?

Cost depends on the work, not on a license fee, because Loki is licensed under AGPLv3 and the software itself is free to run. Expect three cost areas: infrastructure (object storage, compute for ingest and query, and the shipper fleet), engineering time to redesign log fields as labels and structured metadata, and the work of rebuilding dashboards, alerts and retention rules. The main drivers are log volume per day, how many distinct sources and tenants you have, how many Kibana dashboards and saved searches must be rebuilt, and how long old and new systems run in parallel. Ask any partner for a quote that separates one-time migration work from recurring operations and support, and that states which deployment mode the sizing assumes. The Loki deployment modes documentation explains how volume maps to the monolithic, simple scalable and microservices paths.

How long does a migration from Elasticsearch to Loki take?

Duration depends on how many log sources, dashboards, alerts and retention policies must move, and on how long you need both platforms running during cutover. Plan the work in phases: inventory indices and queries, redesign the label set, stand up Loki and object storage, move shippers to Alloy or OpenTelemetry, rebuild dashboards, then retire Elasticsearch after the parallel period. Each phase depends on the previous one, so a small set of high-volume indices can set the critical path. Ask for a written timeline tied to a fixed scope. Elastic's support windows also matter: the Elastic product end of life dates page lists when the 8.x and 9.x lines stop receiving maintenance, which can set a deadline for the move.

What must our internal team provide for the migration?

Your team provides the knowledge and access that only you hold. Typical inputs include an inventory of Elasticsearch indices, index templates and ingest pipelines, the Kibana dashboards and saved searches people rely on, alert rules and their recipients, retention and legal hold requirements, and the list of log sources with their current shippers. You also need a named owner for object storage, network paths from sources to Loki, identity provider details for the reverse proxy, and a decision on which teams query which logs. Access to test data and a window for parallel running are also needed. Ask a partner to confirm this list in writing before work starts, since missing inputs are the most common cause of schedule slips.

Can our own team run this migration without an outside partner?

Yes, a capable platform team can do it, provided it has time, experience with object storage and Kubernetes or Linux operations, and someone who owns the log schema redesign. The hardest parts are usually not installation. They are deciding which fields become labels, avoiding high-cardinality labels, rebuilding queries in LogQL, and proving that retention and access controls meet your policies. Grafana's own Loki storage documentation and the Loki documentation set cover the mechanics. Weigh your team's capacity against the work that would stop other projects. A partner is most useful when the schedule is fixed, the compliance evidence must be produced, or the team has not run a log platform before.

Can Loki replace full-text search over our logs?

Not in the same way. Loki indexes only labels, not the content of log lines, and stores compressed chunks in object storage. That design keeps storage cheap and ingestion fast, but queries that search arbitrary text scan matching streams, so they are slower than Elasticsearch inverted index searches for broad, unfiltered terms. Loki works well when queries are narrowed by labels such as application, environment and tenant, then filtered with LogQL line filters. Structured metadata can hold fields that would otherwise be high-cardinality labels. Test your most common investigation queries against realistic volumes before deciding. If you depend on relevance ranking or complex full-text analytics across all history, keep OpenSearch or Elasticsearch for that use case.

Is the Logstash output plugin still recommended for sending logs to Loki?

No. Grafana Labs does not recommend the logstash-output-loki plugin for new deployments. Its documentation says users almost always send too many high-cardinality labels to Loki, because Elasticsearch works on a fundamentally different model. The practical path is to move shippers to Grafana Alloy or the OpenTelemetry Collector, which can read the same sources and apply label rules deliberately. During cutover, you can keep Logstash running for Elasticsearch while a separate Alloy pipeline feeds Loki from the same inputs. Read the Loki Logstash plugin documentation for the current guidance before you decide whether any existing Logstash pipelines should stay in place.

How do authentication and access control compare between Elastic and Loki?

Elastic's self-managed stack includes basic security features such as TLS and native users, while single sign-on, field- and document-level security and some other controls sit in paid subscription tiers. OpenSearch includes its Security plugin under Apache-2.0, with SAML, OpenID Connect, LDAP, Kerberos and role-based access. Loki is different: it has no built-in authentication layer. Its documentation says you must place an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of it, and multi-tenancy relies on the X-Scope-OrgID header when auth_enabled is true. Label-based access control and token authorization are features of Grafana Enterprise Logs, not the open-source build. Plan identity, tenant mapping and audit evidence as explicit work items before cutover.

How shippers, the parallel run and Loki fit together

Log sources feed a collector tier, which is the one place where the parallel run is configured. The collector writes the same events to the existing Elasticsearch or OpenSearch cluster and to Loki, with Loki reached through an authenticating reverse proxy that sets the tenant header. Loki keeps its chunks and index in object storage, and Grafana queries Loki alongside the old cluster. Before cutover, check that both destinations hold matching event counts for the same sources and time windows.

Collectors dual-write to the old cluster and Loki during the parallel run.

How DeployOpen scopes and delivers an ELK to Loki migration

DeployOpen plans and implements self-hosted Loki inside your own cloud accounts, data centers or air-gapped networks, and it agrees the scope in writing before any work starts. For an ELK to Loki move, the written scope usually begins with an inventory of every index pattern, Logstash pipeline, Beats or Elastic Agent input, Kibana dashboard, alert and retention policy that feeds or depends on the current cluster. That inventory decides which log sources move, which ones are retired, and which compliance retention requirements must be carried into Loki's compactor settings before the first log is ingested.

The core technical work is the label model. DeployOpen designs the small set of stream labels that Loki indexes, moves other searchable fields into structured metadata, and reviews the Logstash output configuration so that high-cardinality fields such as request IDs or user IDs do not become labels. Shipper changes follow the label design: Grafana Alloy or OpenTelemetry Collector replaces the Logstash or Beats path, and Loki's authentication sits behind an authenticating reverse proxy, because Loki has no built-in authentication layer. Access rules for Grafana users, tenant IDs sent in the X-Scope-OrgID header and any cross-team queries are documented as part of the same deliverable.

The parallel run and cutover are where most of the risk sits. DeployOpen supports running Elasticsearch or OpenSearch and Loki side by side, comparing query results and alert behavior for an agreed period, and then switching dashboards and shippers in stages. The quote follows from this written scope, so the factors that move the cost are the number of sources, the number of dashboards and alerts to rebuild, the retention and audit requirements, and the cutover approach you choose. DeployOpen does not publish a price list. Ongoing support, Loki upgrades and continuous testing are available as retainers after the migration closes.

Sources and further reading

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.