Sending OpenTelemetry traces and logs to OpenSearch
A platform team that already runs OpenTelemetry has the telemetry generation and transport in place but still needs somewhere to store and search it. OpenTelemetry is an observability framework and toolkit for generating, exporting and collecting traces, metrics and logs, and it is not an observability backend. Storage, indexing and visualization are left to separate tools, so OpenSearch becomes the storage and search layer for trace analytics and log search in infrastructure you control. The Collector that already receives your OTLP data is the component that decides how that data reaches OpenSearch. The Collector is Apache-2.0 licensed, and OpenSearch is also released under Apache License 2.0 with no paid edition described in its FAQ, so the licensing question for the storage layer is settled before you design anything. Confirm the current OpenSearch distribution terms with the project before you commit.
There are two routing options. The first sends OTLP traces and logs to Data Prepper, the OpenSearch project's ingestion component, which runs pipelines that transform data and write it to OpenSearch in the shape its trace analytics and log views expect. Data Prepper is the path to choose when you want the trace analytics views in OpenSearch Dashboards to work as designed, because those views depend on a specific trace document layout. The second option is a direct export from the Collector to OpenSearch, which removes one hop and one component to operate. It suits teams whose main goal is log search, or who will build their own queries and dashboards. Before choosing, confirm which OpenSearch and Data Prepper versions support the trace shape you need, and check the Collector exporter's maturity for each signal in its component README, since component stability varies.
The routing decision also sets the sizing work. Data Prepper adds its own compute tier and buffering, while a direct export puts the ingest load on the Collector and the OpenSearch cluster alone. Ask for a sizing review that models your span and log volume, retention period, replica count and peak burst rate, and confirm how each path behaves when the cluster slows down, including whether data is buffered or dropped. Plan access from the start: the OpenSearch Security plugin provides role-based access control, TLS for node and client traffic and audit logs, and the Collector authenticator extensions can add credentials on exporter requests. Keep the Collector configuration secured, since it will hold those credentials.
Data Prepper pipeline or direct Collector export
Choose a Data Prepper pipeline when you want OpenSearch trace analytics, which depends on trace-shaped indices and service relationships derived from span data. In this path the Collector exports OTLP to Data Prepper, which runs its own pipeline stages before writing to OpenSearch. You add a service you must install, size, configure and upgrade alongside OpenSearch and the Collector.
- Extra runtime tier: Data Prepper runs as a separate service with its own configuration, memory settings and scaling, so it appears in every incident path.
- Trace-shaped indices: The trace analytics pipelines write indices that the OpenSearch trace views query, so your index layout follows what Data Prepper produces.
- Log handling: Confirm whether logs pass through the same Data Prepper instance or a separate route, because log stages differ from trace stages.
- Version pairing: Match the Data Prepper release to your OpenSearch version and read the release notes for both before any upgrade.
Before you commit, check that the Data Prepper release you plan to run documents OTLP input for each signal you need, then test with one service before routing production traffic.
Choose direct export when you want to keep one Collector tier and need log search more than trace analytics. The Collector writes to OpenSearch through an exporter component, which removes the separate Data Prepper service from the design. You take on index naming, mappings and lifecycle policies that the trace pipeline would otherwise supply.
- Fewer components: The Collector sends data straight to OpenSearch, so there is no extra tier to size, patch or monitor.
- Build inclusion: The exporter must be present in the distribution you deploy. Use the Collector Builder to include only the components you need, and confirm the exporter is in your chosen build.
- Index ownership: You define index names, field mappings and retention, and you maintain any index templates yourself.
- Trace views: Trace analytics dashboards depend on the layout Data Prepper creates. Confirm whether direct export gives you equivalent views or whether you will build your own.
- Backpressure behavior: Collector queue and retry settings absorb load when OpenSearch slows down. Test how the queue fills and drains under realistic volume.
Confirm the stability level of the exporter for each signal in the README of the exact component version you pin.
Both paths reshape trace data somewhere between the application and the index. The question is where each change happens and whether dashboards still find the fields they query. Mapping decisions made early are hard to reverse once data is stored, so review them before the first pilot.
- Attributes to fields: Resource and span attributes become indexed fields. Naming in the Collector must match what dashboards and saved searches expect.
- Service relationships: Trace analytics derive service relationships from parent and child spans. Confirm which path computes them and whether dropped spans break the chain.
- Identifiers and timestamps: Trace IDs, span IDs and time fields must match the index mapping types, or queries against them will fail or return partial results.
- Redaction placement: Apply the redaction processor in the Collector before export so sensitive attributes never reach either path, and do not depend on OpenSearch access controls to hide them.
- Dropped or renamed attributes: Processors that rename or drop attributes change what dashboards can see, so document each change.
Run the same sample trace through each path and compare the stored document with what your dashboards expect.
Maturity is set per signal and per component, not per product. Before choosing a path, record the exact versions of the Collector distribution, Data Prepper, if used, and OpenSearch, and confirm each one supports the signals you plan to send. Upgrades on any one of these can change exporter behavior, so the record should be part of the design document.
- Per-signal stability: Trace, metric and log support differ across the OpenTelemetry project. The OpenTelemetry status page and each component README show the current levels.
- Collector release: The most recent release supplied for this topic is v0.163.0, published October 16, 2026. Read its notes for changes to the exporters and receivers in your path.
- OpenSearch release line: OpenSearch 3.9.0 was released September 29, 2026. Confirm your running version is still under maintenance or supported before you build on it.
- Data Prepper release: Confirm its current release, supported OTLP sources and compatible OpenSearch versions in its own documentation, because those details are not covered here.
- Pilot at volume: Run a pilot with production-like telemetry volume and failure cases, such as an OpenSearch restart, before approving either path.
Keep the pinned versions and the test results together so the routing choice can be reviewed when a version changes.
Configuration options and when each fits
This table compares the main configuration choices for sending OTLP traces and logs to OpenSearch, with the situations each one suits and the trade-off it brings. Read each row as a decision: pick the placement first, then confirm the transport, authentication, index and retention settings against the versions in your environment.
| Option | When it fits | Trade-off |
|---|---|---|
| Collector as agent beside services | Hosts or pods where logs and traces need local collection, file reading or host metadata before leaving the node | More Collector instances to configure, upgrade and monitor; each needs its own credentials and queue sizing |
| Collector as gateway | Many sources share one ingest path with central processing, redaction and a single place to manage OpenSearch credentials | The gateway becomes a shared failure point and needs its own sizing, buffering and scaling plan |
| Data Prepper in the middle | Trace analytics or pipeline-level transformation expected by OpenSearch trace and log views, using Data Prepper's own pipeline model | One more component to run and secure; confirm the Data Prepper version supports the OTLP inputs and OpenSearch version you target |
| Direct export from the Collector | Logs or traces only need to reach OpenSearch with light processing and no Data Prepper-specific pipeline behavior | Trace analytics views may expect data shaped by Data Prepper; confirm the field mapping before committing |
| Index naming and mapping | Separate indices per signal or per environment give clearer access control and lifecycle rules | Dynamic mapping grows with attribute cardinality; decide field types and index templates before ingest starts |
| OTLP transport (gRPC or HTTP) | gRPC or HTTP depends on what each sending SDK and intermediate hop supports and what your network policy allows | Mixed transports add conversion hops; confirm TLS and compression settings for each hop in the versions you run |
| Authentication on receivers and exporters | Receivers need OIDC or similar checks for clients; exporters need credentials for OpenSearch, typically via authenticator extensions | Each extension adds configuration and secret rotation; confirm the component names and stability level in each release |
| Retention and index lifecycle | Shorter retention for high-volume debug logs and longer retention for audit-relevant traces suit separate index policies | Longer retention raises storage and heap needs on the ingest tier; confirm lifecycle features in the OpenSearch version you deploy |
How OTLP data moves from services to OpenSearch
The path starts in instrumented applications, which export OTLP to a Collector agent running next to them. The agent forwards to a Collector gateway inside the controlled network, and the gateway either writes to OpenSearch directly or hands data to Data Prepper, which shapes it into indices for trace analytics and log search. OpenSearch Dashboards reads from the cluster. Check where TLS and authentication are enforced at each hand-off, especially at the gateway receiver and the OpenSearch endpoint, and confirm that the trust boundary matches your network zones.
Telemetry path from services through Collectors and Data Prepper into OpenSearch.
Setup sequence for an OpenSearch telemetry pipeline
This sequence takes a team from an unconfigured OpenSearch cluster to a working OTLP path into trace views and log search, with a check at each stage so that faults are found while the pipeline is still small. It is written for the platform engineers who will own the pipeline after handover.
Confirm the OpenSearch version and install method
Choose the OpenSearch version you will run, then pick an install method from the install documentation, such as Docker, Helm, the OpenSearch Kubernetes Operator, tarball, RPM, Debian packages or the Ansible playbook. Check the release page for the version's maintenance status so you do not start on a line that is near the end of its support window. Record the version in your build sheet, because the Data Prepper or Collector exporter you choose must match the OpenSearch release you deploy. Done means you have a written version and install method that the security and operations teams have both approved.
Deploy the cluster with security enabled
The platform team installs the cluster with the Security plugin active, TLS on node and client traffic, and no anonymous access. Confirm that the HTTP and transport listeners are reachable only from the networks that need them, and that the admin certificate is stored outside the cluster configuration. Start with a single-purpose cluster sized for a test load, and keep the topology notes for the ingest tier so you can resize it later. Done means a health check over TLS succeeds with the admin identity and an unauthenticated request is refused.
Create roles and a dedicated ingest user
The security administrator creates a role that allows index creation and bulk writes only to the telemetry index patterns, then maps a dedicated service user to that role. Keep the admin account out of the pipeline, and do not grant cluster-wide write permissions. Add a read-only role for the people who will search traces and logs, and decide whether any field-level or field masking rules are needed for sensitive attributes before data arrives. Done means the ingest user can write to the test index pattern, is denied on other indices, and the read role can query but not modify.
Configure the Collector or Data Prepper pipeline
Choose between a Collector exporter that writes straight to OpenSearch and a Data Prepper pipeline that receives OTLP and transforms it for trace analytics or log search, based on the views you need. Store the ingest credentials in your secrets mechanism and reference them from configuration instead of pasting them into files. Enable the OTLP receiver with authentication, and bind it to an address your network policy allows, because server components bind to localhost by default in current Collector releases. Confirm component stability in each component's README before relying on it. Done means the configuration validates and the process starts without errors on the target version.
Send test OTLP traces and logs
Send a small, known set of OTLP traces and log records from a test service, ideally one with a known span tree and a log line with a unique marker string. Use a test workload that carries no regulated data, so that any problem found in this step cannot expose real telemetry. Watch the Collector or Data Prepper logs for rejected requests and bulk write errors during the send. Done means the test service reports successful exports and the Collector shows no dropped records for the run.
Verify indices, trace views and log search
Confirm that the expected indices exist, that document counts match the number of test spans and log records sent, and that field mappings include the trace and span identifiers your trace views depend on. Open the trace view in OpenSearch Dashboards and find the test trace by its identifier, then search for the unique log marker with the read-only role. Check that timestamps are correct and that the same trace appears with its logs. Done means counts match, the trace renders with the expected span tree, and the marker log is found by the read role.
Record the baseline and hand over
Save the working configuration, role definitions, index templates and the verification queries in version control, with secrets referenced rather than stored. Record the exact OpenSearch and Collector or Data Prepper versions, along with the install method and the test results. Ask your team to confirm the upgrade path and the ingest sizing plan before production traffic is introduced. Done means a second engineer can repeat the test run from the written record and reach the same results.
How to size the OpenSearch ingest tier
The ingest tier is sized from four drivers: telemetry volume per signal, retention period, index shard layout and the batching the Collector applies before it sends data. Start by measuring what the pipeline actually emits. Trace spans and log records are different in size and rate, so count them separately, measured in events per second and bytes per event at the Data Prepper or Collector boundary. Retention then multiplies that volume into stored data, and the replica count you choose doubles or triples it on disk. Ask your OpenSearch and Data Prepper deployment team to write these inputs down before any hardware or node count is discussed.
Shard layout decides how evenly that volume spreads across nodes. Trace analytics and log search usually write to time-based indices, so the number of primary shards per index, the rollover or index lifecycle policy and the size each shard reaches determine how many shards are actively receiving writes at any moment. Too many small shards add cluster overhead, while a few oversized shards concentrate ingest on single nodes. On the Collector side, the batch processor and the exporter's batching settings control how many documents arrive per bulk request. Test several batch sizes against your target throughput, since very small bulk requests waste indexing capacity and very large ones increase memory pressure and retry cost. Confirm the exact settings with the version of the OpenSearch exporter or Data Prepper pipeline you deploy.
Node roles then determine which machines absorb ingest. Dedicated cluster manager nodes, data nodes and ingest nodes can be separated so that heavy indexing does not starve cluster state management. Confirm in the OpenSearch documentation for your target version which roles your Data Prepper pipeline writes through. For sizing figures, use the guidance in Creating a cluster as the starting point, and do not treat any number from a blog post or vendor page as your own. No sizing figures are given here: the team must measure its own event rate, retention and query load, then run a load test with production-shaped data and bulk settings, and record indexing latency, rejected bulk requests and heap usage before approving the node count.
Securing OpenSearch and the telemetry path
Data Prepper, the Collector and OpenSearch each hold part of the same log and trace data, so access has to be controlled at every hop. The cards below cover the OpenSearch controls for who can read what, the transport and audit settings that show who touched it, and the Collector settings that stop unauthenticated or sensitive data from reaching storage in the first place.
Choose an authentication backend
OpenSearch Security supports SAML, OpenID Connect, Active Directory and LDAP, Kerberos and JSON Web Token authentication backends. Pick the one your identity provider already serves, then confirm how group claims map to OpenSearch roles, since a wrong mapping is the most common reason a dashboard user sees more than they should. Test sign-in for admins, analysts and service accounts separately, and confirm how Data Prepper authenticates to the cluster.
OpenSearch security docsRole-based access for trace and log indices
Create roles that match how teams use trace and log data, for example one role for the Data Prepper writer, one for on-call search and one for auditors. Use index patterns so a service team sees only its own indices. Remember that Data Prepper needs write access to its pipeline indices and nothing more, and that dashboard saved objects carry their own permissions.
Field-level security for sensitive log fields
Log bodies and span attributes often contain customer identifiers, tokens or personal data that are useful for debugging but not for every reader. Field-level security and field masking let you hide or mask specific fields for specific roles, and document-level security can limit which records a role sees. Map the fields your telemetry actually carries before you write these rules, and test them with a non-admin user.
TLS for node and client traffic
Encrypt traffic between OpenSearch nodes and between clients and the cluster, including Data Prepper and Dashboards connections. Plan certificate issuance, rotation and trust distribution up front, because an expired certificate stops ingestion without a clear error on the Collector side. Confirm which endpoints still accept plain HTTP in your chosen install method before you open the cluster to the network.
Audit logs for access and changes
The OpenSearch Security plugin can record authentication events, read and write requests and security configuration changes. Decide which categories you need for your investigations and compliance evidence, then route audit records to a store the cluster administrators cannot quietly edit. Audit logging adds storage and I/O load, so size it in the same review as the ingest tier.
Collector authentication and redaction
Use Collector authenticator extensions to require credentials on OTLP receivers, for example OIDC for incoming connections, and oauth2client to add credentials to exporter requests toward Data Prepper or OpenSearch. Bind receivers to the network interfaces you intend, and remove sensitive attributes with the redaction processor before they reach storage. Build the Collector with only the components you need, and store its configuration with access controls.
Collector security best practicesKeeping OpenSearch and the Collector current
The first thing to plan is that OpenSearch and the OpenTelemetry Collector move on separate schedules, and both can change the path your traces and logs take. OpenSearch targets a new minor version about every eight weeks, and the supplied release history shows 3.8.0 on August 4, 2026 and 3.9.0 on September 29, 2026. Each OpenSearch version stays in maintenance until the next major version enters maintenance or one year passes, whichever is longer. During maintenance it receives bug fixes and security patches but no new features. Version 1 reached end of life on May 6, 2025, and version 2 is maintained through the 4.0 GA release. Check the OpenSearch releases page for the current status of the version you run before you set an upgrade window, because a cluster that falls out of maintenance stops getting security fixes.
When a version leaves maintenance, the work is an upgrade, not a patch. Use the migration and upgrade documentation to confirm the supported upgrade path from your current version, and decide early whether an in-place rolling upgrade or a migration to a new cluster fits your data. Your plan should name the Data Prepper version, the Security plugin settings, index templates and the ISM policies that manage retention, because those are the pieces that break first when the cluster changes. Test against a copy of production indices, not an empty cluster. Where the source and target versions differ, the migration guidance helps you judge whether a managed migration is worth the effort.
Collector releases move on their own schedule. The releases page shows v0.161.0 on September 16, 2026, v0.162.0 on September 29 and v0.163.0 on October 16, 2026, and each contrib release can rename components or change defaults. After every Collector upgrade, retest the otlphttp or opensearch exporter settings, the Data Prepper otel_trace_source and otel_logs_source configuration, TLS and authentication, and the batch and retry settings, then confirm that spans and log records still arrive with the expected fields. Keep the previous Collector image available for rollback, and pin versions in your deployment manifests so an unplanned pull does not change the pipeline. Confirm exporter maturity per signal in each component's README before you rely on a new release.
Limits to confirm in your environment
The OpenTelemetry to OpenSearch path depends on several moving parts: the Collector version, the signal exporters, the Data Prepper release and the OpenSearch version. Confirm each of these against your own environment before you choose the architecture, because a gap in one usually changes the others.
Exporter maturity per signal
Trace and log support differs across Collector components, and each component documents its own stability level in its README. Check the exporter and receiver you plan to use for each signal in the exact Collector version you will deploy, not the version in a blog post. Pin that version in your build, since the contrib distribution ships many components of mixed maturity.
OpenTelemetry statusData Prepper signal and version fit
Confirm that the Data Prepper release you plan to run supports the OTLP trace and log pipelines you need, and that it works with the OpenSearch version you intend to operate. Do not assume a feature in one component exists in the other. Ask the vendor documentation for a compatibility matrix and test a representative pipeline before sizing the cluster.
Mapping and dashboard compatibility
OpenTelemetry resource and span attributes rarely match the field names your existing dashboards and saved searches expect. List the fields your dashboards query, then compare them with the mappings the pipeline produces. Changes to field names or types can break saved views silently, so check them against real sample data rather than a schema diagram.
Index lifecycle requirements
Decide how long traces and logs stay searchable, how indices roll over, and who deletes them. Trace and log volume grows with sampling and retention choices, so the ingest tier size depends on these answers. Confirm the index lifecycle policy, snapshot schedule and storage budget with your storage and compliance owners before the first production index is created.
Existing Elasticsearch migration
If you already run Elasticsearch, confirm whether your Collector Elasticsearch exporter, index templates, ingest pipelines and client code need to move with the data. OpenSearch is wire-compatible with Elasticsearch 7.10 and can use indices from earlier versions, but client libraries and plugins still need checks. Ask whether a migration path or a parallel run is the safer way to cut over.
OpenSearch migration docsQuestions teams ask before building OpenSearch telemetry pipelines
What drives the cost of an OpenSearch telemetry pipeline?
Cost comes mostly from the infrastructure that stores and queries the data, plus the people who design and run it. The main drivers are the volume of traces and logs per day, how long you keep them, how many indexes and replicas the cluster needs, and how many users run searches at the same time. Software is not the cost driver: OpenSearch is released under the Apache License, Version 2.0, so the license itself has no fee. Ask any partner for a quote that separates one-time work (design, build, testing, migration) from recurring work (hosting, upgrades, patching, on-call), and that states the data volume and retention assumptions behind each figure.
How long does an OpenSearch telemetry build take?
Duration depends on scope more than on the software. A single Collector sending traces directly to an existing cluster is a small job. A build that adds Data Prepper pipelines, index templates and retention policies, SSO and role mapping, dashboards, and a sized ingest tier across several environments takes considerably longer. Your team's existing Kubernetes or VM tooling, the number of services being instrumented, and how many approvals a change needs will also move the schedule. DeployOpen agrees timelines in writing as part of a fixed-scope engagement, so ask for milestones tied to specific deliverables rather than a single end date.
What does the work need from our team?
Expect to supply several named people and some access. You will need owners for the cloud or data center environment where OpenSearch runs, someone who can approve network and TLS changes, the application teams that will instrument their services, and whoever controls your identity provider if you want SSO. Your security team should define who may read which logs and whether any fields must be masked before they are indexed. Confirm access early: test clusters, service accounts, certificates and a place to store secrets. Delays in these areas usually cost more time than the technical work itself.
Can our own team build this without a partner?
Yes, a capable platform team can build a basic pipeline in-house, especially if it already runs OpenSearch or Elasticsearch and understands the OpenTelemetry Collector. The harder parts tend to be sizing the ingest tier, configuring the OpenSearch Security plugin for role-based access, document-level security and audit logs, and proving the setup meets your internal controls. Consider whether your team has time to learn these areas while also running production. A partner is useful when you need a fixed scope, a documented build for review, or capacity your team does not have. Either way, define success criteria before you start.
Does OpenSearch have a paid edition?
The OpenSearch FAQ does not describe any paid edition. All software in the OpenSearch project is released under the Apache License, Version 2.0. OpenSearch is a fork of open source Elasticsearch 7.10, and OpenSearch Dashboards derives from Kibana 7.10.2. Your real costs will be infrastructure, support arrangements you choose to buy from a vendor or partner, and staff time. Check the license terms of any third-party plugin, connector or managed service you add, because those can differ from the core project.
Should we use Data Prepper or export directly from the Collector?
Choose based on what processing you need between the Collector and OpenSearch. Direct export from the Collector keeps the path short and suits teams that mainly need to store logs or traces with light transformation. Data Prepper is a better fit when you want trace analytics pipelines, additional processing, or a dedicated tier that OpenSearch operators manage separately from the Collector fleet. Check the current Data Prepper and exporter documentation for the signals and versions you plan to use, and test both paths with realistic sample data before you commit. Mixed designs are also possible, but they add one more component to upgrade and monitor.
What does running the pipeline involve after launch?
After launch you will maintain the Collector configuration, Data Prepper pipelines, OpenSearch cluster and dashboards. OpenSearch targets a new minor version about every eight weeks, and each version stays in maintenance until the next major version enters maintenance or one year passes, whichever is longer. During maintenance, versions receive bug fixes and security patches but no new features, so plan a regular upgrade cadence. Ongoing work includes watching disk and shard growth, reviewing retention, rotating certificates and credentials, testing backups, and checking for dropped telemetry. DeployOpen offers ongoing support, upgrades and continuous testing as retainers.
How DeployOpen scopes and delivers this work
DeployOpen plans and implements self-hosted OpenTelemetry and OpenSearch pipelines inside your own infrastructure, whether that is your cloud accounts, data centers or an air-gapped network. The work covers the Collector deployment pattern, the Data Prepper pipelines or direct Collector export into OpenSearch, the OpenSearch cluster and its ingest tier, index and retention design, access control and the verification that the path works end to end. Most engagements are fixed-scope, so the systems in scope, the deliverables and the timeline are agreed in writing before any build starts. Ask for the scope to name each signal (traces, logs or both), each sending service, the OpenSearch version you will run, and who owns the cluster after handover.
A quote follows from that written scope, so DeployOpen does not publish a price list. The main cost drivers are the number of telemetry sources, the volume of traces and logs you expect to ingest, how many environments need the same pipeline, whether you need SSO and role-based access in OpenSearch Security, and how much of the sizing and load testing is in the work. Ask the vendor to separate one-time costs (design, build, testing, handover documentation) from recurring costs (cluster hosting, upgrades, your own staff time and any retainer). Confirm which OpenSearch release train you are targeting, since OpenSearch targets a new minor version about every eight weeks and maintenance rules determine how long a given version receives security patches.
Ongoing support, upgrades and continuous testing are available as a retainer after the initial delivery. This is useful if your team will run the cluster but wants help with minor-version upgrades, Data Prepper or Collector version changes and periodic retesting of retention and access settings. Before you sign, agree in writing who handles incidents, what response expectations apply and how configuration changes are recorded. DeployOpen prepares systems and evidence for compliance reviews, but it does not issue audit reports or certifications, so any audit scope should be confirmed with your independent auditor.

