Why teams send OpenTelemetry data to Elasticsearch
Teams that already run Elasticsearch or Kibana often want OpenTelemetry signals stored there without adding a second, vendor-specific agent. The path is the OpenTelemetry Collector's Elasticsearch exporter, which receives traces, metrics and logs from applications and infrastructure, processes them, and writes them to your cluster. OpenTelemetry collects and exports the data, while Elasticsearch stores and searches it. OpenTelemetry is not an observability backend, so the choice of Elasticsearch is a separate decision from the choice of instrumentation, and the two can be planned independently.
This pattern fits organizations with an established search or log operations team, staff who already write Kibana queries and dashboards, and a requirement to keep telemetry inside infrastructure they control for data residency reasons. It also suits teams that want one set of collection standards across services while keeping their storage platform. It fits less well when no one on the team can operate an Elasticsearch cluster, when the required features sit in paid subscription tiers that the budget does not cover, or when the organization has already standardized on another backend such as Prometheus-compatible storage or Grafana Loki. Before committing, confirm which Elasticsearch and Kibana license terms apply to your deployment, since the default distribution is under the Elastic License 2.0 and open source options are separate, and check which version lines your security team will accept, using the Elastic product end of life dates as the reference.
Which Elasticsearch deployment and license model fits
This table compares the self-managed Elasticsearch options a team can run for OpenTelemetry data, including the free tier, the Enterprise tier, the Kubernetes operator and OpenSearch. Read each row against your security requirements, because the features that matter most for log and telemetry access sit in paid tiers. Confirm current tier entitlements with Elastic before you commit to a design.
| Option | License basis | Security features to confirm | Fit for OpenTelemetry pipelines |
|---|---|---|---|
| Self-managed Free and open (Basic) | Elastic License 2.0 default distribution, with an AGPLv3 option | TLS, file and native realms and role-based access control are free, per Elastic's 2019 announcement | Suits teams that need core access controls and can confirm which exporter features apply to this tier |
| Self-managed Enterprise | Paid Elastic subscription under the self-managed subscriptions page | Single sign-on (SAML, OpenID Connect, Kerberos, JWT), field- and document-level security, encryption at rest support and FIPS 140-3 mode are listed | Fits where SSO and field-level restriction on telemetry must be enforced inside your cluster |
| Platinum tier | Paid tier no longer available to new self-managed customers | Anomaly detection alerting was listed here and on Enterprise | Not an option for new deployments; confirm existing contract terms with Elastic |
| Elastic Cloud on Kubernetes | Self-managed Elastic product offered in Basic and Enterprise tiers | Operator-managed deployment; security features follow the chosen Elastic tier | Fits teams already running Kubernetes who want Elasticsearch lifecycle managed by an operator |
| OpenSearch (separate fork) | Fork of open source Elasticsearch 7.10, with Dashboards derived from Kibana 7.10.2 | Security features differ from Elastic's tiers; confirm each control in the OpenSearch documentation | Wire-compatible with Elasticsearch 7.10 only; confirm Collector exporter support on OpenSearch separately |
| Licensing of source code | ELv2, SSPL 1.0 and AGPLv3 available; ELv2 and SSPL are not OSI-approved | Choice of license affects redistribution and internal use terms, not runtime features | Ask legal counsel to confirm which license applies to your planned use before deployment |
| Current release lines | Elastic 9.x and 8.x lines with published end-of-maintenance dates | Confirm the version your exporter targets is still within its support window | Plan upgrades around the end-of-maintenance dates on Elastic's end-of-life page |
How the Collector, Elasticsearch and Kibana connect
The path starts with applications using OpenTelemetry SDKs, which send OTLP to a Collector agent next to the services. The agent forwards to a gateway Collector, where processors run before the Elasticsearch exporter writes into the cluster. Inside the trust boundary, master-eligible, data and ingest nodes handle cluster management, storage and indexing, and Kibana reads from the cluster. Check the TLS settings and authenticator extensions at each edge, and confirm which node roles your cluster actually runs.
Telemetry path from applications through the Collector into a self-managed Elasticsearch cluster, read by Kibana.
Setting up the exporter against a self-managed cluster
This sequence takes a self-managed Elasticsearch cluster from version and license checks to a verified Collector pipeline that sends logs, metrics and traces into indices your team can query in Kibana. Each step closes with a check so the next one starts from a known state.
Confirm the Elasticsearch version and license tier
The platform team confirms which Elasticsearch release line the cluster runs and which license tier it holds before any Collector work starts. Elastic's current release lines are 9.5.5 and 9.4.8, with 8.19.23 still maintained, so check the cluster's version against the elastic/elasticsearch releases page and the end-of-life dates on Elastic's support page. Confirm with Elastic whether your deployment is under the Elastic License 2.0 default distribution, SSPL or AGPLv3, because the license shapes what you can redistribute and which security features you can enable. Check the subscription tier against the features your design depends on, such as single sign-on, field- and document-level security or anomaly-based alerting. Done when the version, license and tier are written down and the security owner has signed off on them.
Size node roles for a highly available cluster
The infrastructure team maps the cluster's node roles before creating users or pipelines, because the exporter's write path depends on where data and ingest work land. A highly available cluster needs at least three master-eligible nodes, so plan that minimum and place them on separate failure domains. Assign data roles, including hot, warm, cold or frozen tiers if retention needs them, and decide whether ingest nodes will handle pipeline processing or whether the Collector will carry that load. Confirm the sizing with your Elasticsearch architect against your expected log, metric and trace volume, since that figure depends on your environment. Done when a written node map lists each role, host and failure domain, and someone other than the author has reviewed it.
Create a dedicated exporter user with least privilege
The Elasticsearch administrator creates a dedicated user and a custom role for the Collector, rather than reusing an administrator account. Grant the role write access only to the index patterns used for logs, metrics and traces, plus the minimum cluster privileges the exporter needs to create or update index templates and to check cluster health. Do not grant access to security indices or to other teams' data. Store the password or API key in your secrets manager, and set a rotation owner. Test the credentials with a direct authenticated request that writes one document to a test index and then deletes it. Done when the test write succeeds and an attempt to read an unrelated index is denied.
Build the Collector with the Elasticsearch exporter
The engineer who owns the Collector pipeline uses the OpenTelemetry Collector Builder to produce a custom distribution that includes the Elasticsearch exporter and only the receivers, processors and extensions the pipeline needs. This keeps the binary smaller and reduces the attack surface, in line with OpenTelemetry's security guidance on building with only the components you need. Pin the Collector version in the builder manifest, and verify the release artifacts using the signed artifacts, SHA256 checksums and SBOM files published with each release. Confirm the exporter's stability level for each signal in its component README, because stability varies across components. Done when the build completes, the binary lists the Elasticsearch exporter, and the checksum matches the published value.
Configure TLS and exporter credentials
The engineer writes the exporter configuration with TLS enabled for the connection to the cluster and loads the trust chain for your internal certificate authority. Reference the credentials from the secrets store rather than writing them into the configuration file, and restrict the file's permissions to the service account that runs the Collector. Bind the Collector's own receivers to the interface and port the sending services need, because server components bind to localhost by default in recent releases and any change should be deliberate. Where the sending services authenticate to the Collector, configure an authenticator extension. Done when the Collector starts without configuration errors, the health check responds, and a connection test to the cluster completes over verified TLS.
Add the redaction processor before export
The security engineer places the redaction processor in every pipeline ahead of the Elasticsearch exporter, so sensitive attributes are removed before data leaves the Collector. Define the attribute keys to strip or mask from your own data model, such as authorization headers, session identifiers, personal identifiers or database query parameters, and review a sample of real telemetry to find keys you did not expect. Keep the processor order fixed so no pipeline can export data that skipped redaction. Ask the compliance lead to approve the attribute list, because it becomes part of your data handling evidence. Done when a test event containing a planted sensitive value reaches the cluster with that value removed.
Send test logs, metrics and traces
The engineer sends one synthetic log record, one metric point and one trace span through the pipeline, using a test service name that no production team uses. Check the cluster for documents in the expected index for each signal, and confirm the field names and timestamps match what the mapping mode produces in your configuration. Then open Kibana with the exporter user's read role or an authorized analyst account and run a query for each signal. Document any mapping conflicts, missing fields or index template mismatches. Done when all three signals are visible in Kibana, the queries return the test records, and the results are recorded in the change ticket.
Confirm the pipeline before production traffic
The platform team runs the Collector at the sending volume it expects in production, or a representative load your team agrees on, and watches the cluster's indexing behavior and the Collector's own telemetry for dropped data and retries. Review the index template and lifecycle settings so retention and rollover match your policy. Confirm with the operations owner how the Collector will be upgraded and how the exporter user's credentials will rotate. Record the final configuration, the Collector version and the test results as the baseline for later changes. Done when a load run completes without unexplained drops, the baseline record is stored, and the owners have accepted the handover.
How mapping and index choices differ for logs, metrics and traces
Log records carry the widest range of fields, from resource attributes added by the Collector to free-text bodies and application-specific attributes. Every new attribute name can become a new field in the index, so the decisions center on how much structure Elasticsearch enforces and how long each index is kept. Confirm how the exporter's mapping modes handle log attributes in the release you deploy, because defaults can differ between releases and should not be assumed from older documentation.
- Index naming: Decide whether logs go to one index per environment, per service or per time window using a data stream pattern. Set the target name in the exporter configuration so that retention and access policies can match it.
- Field mapping: List which attributes must be searchable as keywords, which are numeric or timestamps, and which should stay inside the message body. A high-cardinality attribute mapped as a field keeps growing the mapping.
- Retention: Set lifecycle rules per index pattern. Security and audit logs usually need longer retention than debug output, so separate them early.
- Kibana views: Discover searches, saved searches, log dashboards and alerting rules all depend on field names. Renaming a field later breaks these views.
Before production, send a representative sample of real log records and check that the resulting fields match what your Discover searches and dashboards expect.
Metrics are numeric series identified by a name, a data type and a set of dimensions. Each combination of dimension values creates a separate time series, so the mapping decisions focus on keeping series counts predictable and on how metric types such as sums, gauges and histograms are represented in Elasticsearch. Confirm which metric types and temporality settings the exporter supports in your release and how it maps each one, since this area changes between versions.
- Index naming: Choose whether metrics share an index family with a predictable prefix or get separate indices by source. Keep the naming scheme stable, because dashboards and retention rules reference it.
- Dimensions: Decide which resource and data point attributes become dimensions. Each added dimension multiplies the number of series, so review them against the metric volume you expect.
- Metric types: Confirm how histograms and monotonic sums are stored and whether your dashboards can read the stored form directly. Some types may need conversion before a query works.
- Retention and rollups: Set retention for raw samples separately from any downsampled data, because capacity planning depends on both.
- Kibana views: Dashboards, visualizations and any threshold rules depend on metric field names and dimension names. Changing a dimension changes the series your charts display.
Before production, send a sample of each metric type you plan to use and confirm the stored fields, the series count and the chart results match your expectations.
Trace data is stored as span documents that reference a trace identifier and a parent span. Spans from one request can arrive from several services and several Collector instances, so the mapping decisions focus on how spans are grouped, how nested span attributes are indexed, and how long traces remain searchable. Confirm the exporter's mapping modes for traces in your release, including how span events and links are represented, before you set index names or field rules.
- Index naming: Decide whether spans go to one index per environment or per service. Consistent naming makes it easier to apply retention and access controls to sensitive services.
- Field mapping: Identify which span and resource attributes are used for lookup, such as the trace identifier, service name and operation name, and map them as keywords. Attributes used only for display can stay unindexed if your release allows it.
- Attribute growth: Span attributes often include values such as URLs or identifiers that vary widely. Review them with the application owners before they become fields.
- Retention: Keep trace retention aligned with how far back investigations need to reach. Traces are often larger than logs for the same period, so retention is a cost decision as well.
- Kibana views: Trace views and service maps depend on specific field names and the view your release provides. Confirm which views you plan to use before fixing the mapping.
Before production, ingest traces from a representative service and confirm that you can find a complete trace by its identifier and that the expected views load.
Securing the exporter path and the cluster
The exporter path runs from the Collector's receivers through the exporter to the cluster, and each hop needs its own control. Credentials, transport encryption, inbound authentication, data scrubbing, build contents and network binding all have to hold at once. Check each one against the Elasticsearch license tier you actually hold, because some of these controls are free and others are paid.
Store configuration and credentials securely
The Collector configuration holds the Elasticsearch endpoint and the credentials the exporter uses to write data. Keep API keys and passwords out of the YAML file itself and load them from environment variables or a secrets store your platform team controls. Restrict who can read the configuration file and the container spec that mounts it. Confirm that the account the exporter uses can write to its target indices and nothing more.
Collector security practicesEncrypt the connection to the cluster
Enable TLS between the exporter and Elasticsearch so logs, metrics and traces are not sent in clear text across the network. Decide whether the Collector will verify the cluster certificate against a private certificate authority, and plan how that CA is distributed to Collector hosts. Elastic has offered TLS in the Basic tier since 2019, so the feature itself is not a licensing question. Confirm the certificate chain and rotation process before the first production export.
Authenticate inbound and outbound connections
Authenticator extensions protect the Collector's own receivers, for example by requiring OIDC tokens from senders, and the oauth2client extension can add credentials to exporter requests where your deployment supports it. Check whether your Elasticsearch endpoint accepts the token flow you choose, because OAuth-based access to the cluster depends on how your Elastic tier and gateway are configured. Confirm the supported extension for each receiver and exporter in the component README before you design around it.
Remove sensitive attributes before export
Logs and span attributes often carry tokens, email addresses, account numbers or request bodies that should never reach a search index. Use the redaction processor to delete or mask those attributes in the pipeline before the exporter runs. Test the rules against real sample payloads in a non-production pipeline and review what the cluster actually stores. Field-level security in Elasticsearch is a paid feature, so the Collector is often the only place to enforce this on a Basic license.
Build only the components you need
The contrib distribution includes many receivers, processors and exporters, and each one adds code and attack surface. Use the Collector Builder to produce a custom binary containing only the components in your pipelines, including the Elasticsearch exporter and the processors you rely on. Pin the build to a release you have tested and verify the signed artifacts, checksums and SBOM that ship with each release. Rebuild and retest whenever you move to a newer Collector version.
Keep server components off open networks
Since Collector v0.110.0, server components bind to localhost by default instead of 0.0.0.0. Any change that exposes a receiver or health endpoint to other hosts is a deliberate decision, so record it and restrict it with network policy or a firewall. Confirm which ports the gateway and agent listen on in your deployment. Also check the license tier for role-based access on the cluster side, since TLS and role-based access control are free in Basic but SSO and field- and document-level security sit in paid tiers.
Collector security practicesWhich Elasticsearch versions to target and when support ends
Pick the Elasticsearch release line before you write any exporter configuration, because the line you choose sets how long your cluster receives fixes. Elastic's current release lines are 9.5.5 and 9.4.8, both released on October 6, 2026, and 8.19.23 is still maintained. Elastic maintains each major release for the longer of 30 months from general availability or 18 months after the next major release, plus 6 more months of support. Applied to the dates Elastic publishes, the 8.x line reaches end of maintenance on January 15, 2027 and ends support on July 15, 2027, and the 9.x line reaches end of maintenance on October 15, 2027. A cluster that starts on 8.x in late 2026 therefore has a short window before it needs an upgrade plan. Confirm these dates on Elastic's end of life page before you commit, since Elastic publishes them and they can change.
Treat the Collector release as a second version to pin. The OpenTelemetry Collector v0.163.0 was released on October 16, 2026, and the Elasticsearch exporter is a Collector component, so its behavior follows the Collector version you run. Choose a Collector release that matches your chosen Elasticsearch line in your test environment, then record both versions together in your change records. Plan for the Collector to move on a faster cadence than your Elasticsearch cluster, so schedule a periodic check of the exporter against the Collector you run in production.
Do not assume the exporter supports every Elasticsearch line equally. Confirm which Elasticsearch versions each Elasticsearch exporter release supports by reading the component documentation and the Collector release notes for the exact version you deploy. Ask your DeployOpen team, or your own engineers, to run a test export of logs, metrics and traces against the target cluster version before the production cutover. Record the result, including any mapping or indexing warnings, so the upgrade decision for the cluster and the Collector can be made against evidence rather than the release date alone.
Limits to confirm in your environment before you commit
The Elasticsearch exporter touches four moving parts: the Collector release, the Elasticsearch or Elastic Stack version, the license tier, and the cluster you size. Each card below names one limit to confirm and who should confirm it, so the decision rests on documented behavior and a test in your own environment rather than assumptions.
Exporter stability per signal
Stability is set per component and per signal, and the Elasticsearch exporter does not necessarily mature at the same pace for logs, metrics and traces. Read the stability level listed for each signal in the exporter's README in the contrib repository before you choose which signals go to Elasticsearch. Record the level against the exact Collector release you will deploy, because the level can change between releases. Confirm with the component README and a pilot that sends each signal you plan to use.
OpenTelemetry statusVersion compatibility with the Collector
Check that your Elasticsearch release line is one the exporter is tested against in the Collector release you plan to run. Current Elasticsearch release lines include 9.x and 8.x, and 8.x support has a fixed end date, so a version pinned for a long period may need an upgrade sooner than the Collector does. Confirm the supported pairing in the component README and in the Elastic support matrix, then test the pairing in a non-production cluster.
- 8.x support ends
- 2027
Mapping behavior on existing indices
Mapping modes decide how OpenTelemetry attributes become Elasticsearch fields, and an index that already exists keeps the mappings it was created with. If a previous ingest path wrote to the same index names, new documents may not match the field types you expect. Ask the exporter documentation which mapping mode suits your data, create test indices with that mode, and check field types and dynamic mapping on a sample before you point production traffic at them.
License tier for SSO and field-level access
Basic-tier security covers TLS, native users and role-based access control, while single sign-on, Active Directory and LDAP authentication, and field- or document-level security sit in paid tiers. Confirm with Elastic's subscription page which tier your identity provider and data-access rules require, and get the tier in writing before you design access. Also confirm that the Collector's authenticator extensions reach the cluster under the tier you buy, because the Collector does not remove that requirement.
Elastic subscriptionsSizing the ingest and data tiers
No sizing figures are published for this pipeline in the sources reviewed, so do not plan capacity from general assumptions. Ask Elastic for its sizing guidance for your signal volumes, and run a load test with your real log, metric and trace shapes on the planned node roles, including hot and warm data tiers and any ingest nodes. Track indexing rate, retry and back-pressure signals from the Collector during the test. The results are the basis for the hardware quote.
Elasticsearch node rolesContrib distribution supply-chain review
The Elasticsearch exporter ships in the contrib distribution, which the Collector releases publish with signed artifacts, SHA256 checksums and SBOM files. Your security team should verify the signature and checksum of the exact build you deploy, and use the SBOM to check the dependency list against your own vulnerability process. If the review is strict, consider building a minimal Collector with the Collector Builder that includes only the components you need, and confirm that the exporter and its dependencies are in your build.
Collector release artifactsQuestions teams ask before sending OpenTelemetry data to Elasticsearch
What does this work cost and what drives the price?
The cost depends on the written scope, which is agreed before work starts, and on a few drivers: how many clusters and nodes you run, how many signals (logs, metrics, traces) go into Elasticsearch, whether you need mapping and index design for each, how many environments and sources connect through the Collector, and whether Kibana is already in use and needs dashboards built. License tier matters too, because features such as single sign-on, field- and document-level security and anomaly-based alerting depend on the subscription you hold. Ask for a quote that separates one-time build work (Collector configuration, mapping, testing, documentation) from recurring work such as upgrades and retainer support, and that lists the Elastic subscription and any infrastructure costs you carry yourself.
How long does a first OpenTelemetry to Elasticsearch pipeline take?
No fixed duration applies because the timeline depends on scope. The main factors are how many signals and sources you onboard in the first phase, how much index and retention design your data owners need to agree on, whether the cluster already exists and is sized for the new volume, how quickly identity and network changes are approved, and how many environments need testing before production. A narrow first phase, such as logs from one application group into an existing cluster, moves much faster than a multi-signal rollout across several clusters. Ask for a phased plan in the written scope with a named milestone for each signal, and check which items depend on your change-control process.
What does our team need to provide during the engagement?
Three groups usually need to take part. Elasticsearch administrators confirm cluster version, node roles, sizing, index lifecycle policies and how snapshots are taken. Network and identity owners approve the paths from Collectors to the cluster, TLS certificate handling and the authentication method used by the exporter. Data owners decide what each signal is for, how long it must be retained, which fields are sensitive and must be removed before export, and who may query it. Without these decisions made early, mapping and retention rework is the most common source of delay. Confirm the named people and their availability in the scope before work starts.
Can our in-house team build this without an outside partner?
Yes, many teams that already run Elasticsearch and the Collector can do it themselves, especially for a single signal and a single cluster. The gaps tend to be in Collector configuration patterns for Elasticsearch, mapping mode choices, load testing, and the security review of exporter authentication and telemetry content. Assess your team on those points, along with its capacity over the build period and its ability to carry the pipeline after handover. A partner is most useful when the work spans several clusters, several signals or several compliance requirements at once, or when the internal team needs a documented build it can operate afterwards.
Can we use OpenSearch instead of Elasticsearch for this?
Often yes, but the answer depends on your requirements and on the version you run. OpenSearch is a fork of open source Elasticsearch 7.10 and is wire-compatible with Elasticsearch 7.10, so an exporter built for Elasticsearch does not automatically fit OpenSearch on current releases. Confirm which exporter and index behavior your Collector version supports for the target platform, check whether the features you need (such as particular security or alerting functions) exist there, and review how each platform's licensing fits your policy. Elastic describes its default distribution as under the Elastic License 2.0 and also offers AGPLv3 as an OSI-approved option, so the license question deserves a written decision. See the separate page on OpenSearch and Data Prepper for that path.
What happens when we upgrade Elasticsearch or the Collector?
Each side upgrades on its own schedule, so the pipeline needs a compatibility check on every change. For Elasticsearch, check the lines you run against Elastic's end-of-life dates: the supplied dates list end of maintenance for 8.x on January 15, 2027 and for the 9.x core stack on October 15, 2027, with 8.x support ending July 15, 2027. For the Collector, releases ship contrib builds with signed artifacts, checksums and SBOM files, and component stability varies, so review each component's README before changing the exporter configuration. Plan upgrades in a non-production cluster first, keep index templates and mappings under version control, and confirm rollback steps and snapshot coverage before each change.
Which security settings do we need to review before data reaches the cluster?
Review three areas. First, the transport: enable TLS between Collectors and Elasticsearch and set the Collector receivers to listen only where needed, since current Collector releases bind server components to localhost by default. Second, authentication: use the authenticator extensions to control who can send data and to attach credentials to exporter requests, and store those secrets outside plain configuration files. Third, content: use the redaction processor to remove sensitive attributes before export, because logs and trace attributes often carry personal or regulated data. Ask for a review of your Elasticsearch role model too, since field- and document-level security sits in paid subscription tiers.
How DeployOpen scopes and delivers this Elasticsearch pipeline
DeployOpen approaches sending OpenTelemetry data to Elasticsearch as a fixed-scope build inside infrastructure you control. We start by agreeing on which signals, cluster topology, mapping mode and license tier the pipeline depends on, then build the Collector configuration, the cluster-side settings and the verification steps together, and hand over documentation your operators can run without us.
How we scope
- Inventory the logs, metrics and traces to send, and the Elasticsearch version and cluster topology you plan to run.
- Confirm the license tier and security features your compliance team needs, such as TLS, RBAC and audit logging.
- Agree on the mapping mode, index strategy and retention targets, recorded in a written scope before work starts.
How we build
- Assemble the Collector distribution with only the Elasticsearch exporter and processors the pipeline needs.
- Configure exporter authentication, TLS and secrets handling, and apply the redaction processor to sensitive attributes before export.
- Test each signal against your cluster in a staging environment, checking document shape, index templates and dropped-data counts.
How we hand over
- Deliver Collector configuration, cluster settings, index template definitions and runbooks stored in your own repository.
- Document the verification checks, expected document fields and the steps to add a new signal or service.
- Walk your platform and security teams through the pipeline so they can operate and review it independently.
How we support
- Offer ongoing support, Collector upgrades and continuous testing as a retainer after the fixed-scope build ends.
- Plan Collector and Elasticsearch version upgrades against the release lines and end-of-life dates your scope records.
- Retest the pipeline after changes to the cluster, the Collector or the mapping configuration, and report the findings in writing.

