Logstash to OpenSearch with the OpenSearch output plugin: what keeps your pipelines running
Teams that already run Logstash pipelines into Elasticsearch or OSS tooling usually want to change only the destination, not the filters that parse, enrich and route their events. The OpenSearch output plugin for Logstash is the supported path for that move. It is compatible with OpenSearch and with Elasticsearch OSS 7.10.2 or lower, so the pairing you need to check first is the plugin version, the Logstash version and the cluster version together. OpenSearch publishes a Logstash compatibility matrix for this, and it should be the reference for your change record. Confirm the pairing in a non-production pipeline before you touch production inputs.
What the plugin changes is the output stage: where events are indexed, how the connection authenticates and which TLS settings apply. Your input, filter and most of your output configuration can stay as they are, provided the destination hosts, credentials and index naming match what the cluster expects. What it does not change is the behavior of the rest of the stack. Index templates, ILM or ISM policies, mappings and any dashboards built on the old cluster still need an owner and a plan, and a pipeline that runs without errors can still write documents that a downstream search or alert no longer matches. Review those dependencies before you cut over.
Two Logstash settings decide much of the compatibility work, and both should be decided before cutover rather than discovered in logs. The first is the version-reporting setting on the OpenSearch side, which lets clients with version checks, such as Logstash OSS, keep working on OpenSearch 1.x and 2.x. The second is ECS compatibility mode, which Logstash OSS 8.0 turns on by default for all plugins, so legacy field layouts can change unless you override it. Document which mode each pipeline runs in and test field names on a sample of real events. The OpenSearch Logstash documentation covers the plugin settings and should be the next read for the engineers who own those pipelines.
What you need before changing the Logstash output
Before you edit a single pipeline, collect the versions, network paths, trust material and write credentials that the switch depends on. Each card below names one item to confirm, where to find it and what it blocks if it is missing. Most failed output changes trace back to one of these gaps rather than to the pipeline configuration itself.
Current Logstash and plugin versions
Record the exact Logstash version on every host and the installed version of each output plugin, including any Elasticsearch output still in use. Run bin/logstash --version on each node and bin/logstash-plugin list --verbose to capture plugin versions. Logstash OSS and the Elastic-licensed distribution differ, so confirm which build is installed before you choose a compatible plugin. Mismatched builds are the most common reason a pipeline fails at startup.
Logstash compatibility matrix
Check the OpenSearch Logstash compatibility matrix against the Logstash and output plugin versions you recorded. The published matrix is the authority for which pairings are supported, so do not infer a pairing from a neighboring version number. If your pairing is not listed, plan an upgrade or a different output path before the cutover date is fixed. Keep a copy of the matrix version you checked in the change record.
OpenSearch tools docsTarget OpenSearch version
Choose the target OpenSearch version and confirm it is in maintenance on the release schedule. Check the releases page for the current minor line and end-of-life dates, since maintenance windows determine how long patches arrive. Ask whether the cluster will run the version-reporting setting, which matters if any client still performs version checks. Record the target in the change request so the matrix check and the cluster build reference the same release.
OpenSearch releasesNetwork paths to cluster nodes
Map every route from each Logstash host to the OpenSearch HTTP port on the cluster nodes or coordinating nodes that will receive bulk requests. Confirm that firewalls, security groups, load balancers and any proxy allow the traffic in both directions for the required port. Check DNS resolution from each Logstash host, not only from your workstation. A route that works for a browser can still fail for a service account running under a different network policy.
TLS trust material
Gather the CA certificate chain that signs the OpenSearch HTTP certificates, and confirm the hostnames in the certificates match the addresses Logstash will use. Decide whether Logstash verifies the server certificate against a pinned CA file, and store that file where the pipeline can read it. Ask the security team who owns certificate rotation, since an expired certificate stops every pipeline at once. Keep the trust file path in the configuration inventory.
OpenSearch security docsWrite service account and role
Create a dedicated service account for Logstash with a role limited to creating and writing the index patterns it needs, and nothing broader. Do not reuse an administrator account or a personal login. Confirm the role grants bulk write and index creation for the target index names and no cluster administration rights. Store the credential in your secrets manager, and record who can rotate it.
OpenSearch security docsWhich Logstash path fits your current version
Teams already running Logstash OSS with the OpenSearch output plugin usually need the smallest change, but the version pairing still decides whether the pipelines keep working. Start by recording the exact Logstash OSS version, the installed plugin version and the cluster version you are moving to, then compare that combination against the Logstash compatibility matrix in the OpenSearch tools documentation.
- Plugin and Logstash pairing: Confirm the output plugin version listed for your Logstash release in the matrix, not the latest plugin you can find.
- Target cluster version: Check that the OpenSearch release you plan to run appears as supported with that plugin and Logstash combination.
- Version-reporting setting: If the pipelines use Logstash OSS 7.x clients against OpenSearch 1.x or 2.x, review the setting that reports version 7.10.2 to clients with version checks.
- Pipeline inventory: List every pipeline output block so you know which ones send to the cluster and which filters depend on legacy field behavior.
- Rollback copy: Keep the current Logstash configuration under version control so you can restore the previous output within the change window.
Confirm the plugin version, matrix entry and setting names in the OpenSearch docs for your release before you schedule the change.
Logstash 8 introduces a decision that Logstash 7 teams did not face: whether plugins run in ECS compatibility mode. Logstash OSS 8.0 runs all plugins in ECS compatibility mode by default, and compatible OSS clients must override that default if they need the legacy behavior. The choice affects field names and event structure, so it belongs in the design review, not only in the configuration file.
- Default behavior: Identify which plugins in your pipelines inherit ECS mode from the default and which have an explicit setting.
- Legacy field consumers: List dashboards, alerts and saved searches that read fields by their pre-ECS names, because those break if the mapping changes.
- Override scope: Decide whether to set the override per plugin or per pipeline, and document the reason for each choice.
- Index templates: Compare the index mappings your templates create with the fields your pipelines now emit.
- Test events: Replay a representative sample of production events through a staging pipeline and compare the output documents field by field.
Confirm the ECS compatibility setting names and the matching plugin versions in the OpenSearch Logstash documentation for your release.
During a cutover, some teams still run Elasticsearch 7.10.2 or older clients, such as Logstash OSS or Beats OSS, alongside newer components. The OpenSearch output plugin supports Elasticsearch OSS 7.10.2 or lower, so the older clients may be the ones that determine how far the target cluster can move. Plan the transition as a sequence in which each client is confirmed before the cluster version changes.
- Client inventory: List every client that talks to the cluster, with its version and the plugin it uses.
- Version checks: Identify clients that refuse to run when the cluster reports a newer version, since these need the version-reporting setting on OpenSearch 1.x or 2.x.
- Cutover order: Decide which clients move first and whether both old and new endpoints run during the overlap.
- Access and audit impact: Confirm that the security roles and audit logging still apply to traffic from the older clients.
- Exit date: Record when the legacy setting will be removed, and confirm the supported path for that version in the OpenSearch releases documentation.
Confirm the version-reporting setting name and its supported OpenSearch versions in the OpenSearch tools documentation before you rely on it.
How to configure the OpenSearch output plugin in sequence
This sequence takes a Logstash pipeline from its current output to OpenSearch in a controlled order, confirming version pairing and compatibility settings before any production data moves. The result is a tested pipeline with a documented configuration and a clean cutover.
Confirm the compatibility matrix pairing
Before touching any configuration, check the OpenSearch Logstash compatibility matrix and record the exact Logstash OSS version, the OpenSearch output plugin version and the OpenSearch cluster version you intend to run. The output plugin supports OpenSearch and Elasticsearch OSS 7.10.2 or lower, so the pairing you choose determines whether you need the version-reporting setting later. Your platform team owns this record. It is done when the three versions are written in the change ticket and each one appears in the matrix as a supported combination.
Install or update the OpenSearch output plugin
On each Logstash host, or in the container image that runs Logstash, install the OpenSearch output plugin at the version that matches the matrix entry you recorded. Do this in a staging Logstash instance first so that plugin dependencies can be checked without affecting live pipelines. Confirm the installed version with the Logstash plugin listing command and keep the output in the change record. It is done when the plugin list shows the expected version and Logstash starts without plugin load errors.
Set output hosts, TLS and credentials
In the output block of the pipeline, set the cluster endpoints under the hosts key, enable TLS with the CA certificate used by the cluster, and supply a dedicated OpenSearch user whose role allows only the index write permissions the pipeline needs. Store the password in the Logstash keystore rather than in the pipeline file, and keep the index name and action settings explicit. A reviewer should be able to read the block and see where data goes, how it is authenticated and which role applies. It is done when a dry-run configuration test passes and the pipeline file contains no plaintext secrets.
Apply the version-reporting setting only if required
Add the version-reporting setting to the cluster only when a client version check fails, for example when a Logstash OSS or Filebeat OSS 7.x client refuses to connect because the cluster reports a version it does not recognize. The setting makes OpenSearch 1.x and 2.x report version 7.10.2 to those clients. Record which client triggered the need and plan to remove the setting once the client is upgraded. It is done when the pipeline starts without version errors in the log, and the change record names the client that required the setting.
Decide ECS compatibility for each plugin
Logstash OSS 8.0 runs all plugins in ECS compatibility mode by default. For each plugin in the pipeline, decide whether to keep ECS mode or to override it to preserve legacy field names that existing dashboards, alerts and index templates depend on. Make the decision per plugin and write the chosen setting in the plugin block, not as a global assumption. Document the field names that change, so that the search and dashboard owners can review them. It is done when a sample event shows the expected field names in the output and the owners have signed off on the field list.
Run a test pipeline against a non-production index
Point the pipeline at a test index with a name that does not match any production index pattern, and send a representative sample of events from the source, such as a file replay or a saved input set. Compare the document count in the test index with the number of events read from the source, and check a sample of documents field by field. Confirm that the index template applied by the cluster matches the test index, so that mappings are not created by dynamic defaults. It is done when the document counts reconcile, sampled fields match the decisions from the previous step and the template match is shown in the index settings.
Cut over to the production index and monitor
Switch the output index to the production name, enable the pipeline on the production Logstash instances, and keep the previous output path available until the cutover is verified. Watch the Logstash logs for bulk request errors and rejected writes, and check that new documents arrive in the expected index with the expected mappings. Keep the test configuration and the change record together so that rollback steps are clear. It is done when new events appear in production indices, no bulk errors persist over the monitoring window your team agreed, and the old output is disabled in a documented way.
How events move from Logstash inputs into OpenSearch
Events start at log sources and enter Logstash through inputs, pass through filters, and leave through the OpenSearch output plugin. The output plugin is the hand-off point where TLS and authentication to the cluster nodes apply, so the trust boundary sits between the Logstash host and the cluster. Before the first pipeline runs, check whether the cluster must report 7.10.2 to the client, because clients with version checks may refuse to send data without that setting.
Event flow from log sources through Logstash to OpenSearch, with the trust boundary and version decision.
How Logstash fields and index templates map to OpenSearch
This table compares the mapping decisions you make when Logstash writes to OpenSearch: field names, index naming, templates and lifecycle ownership. Read each row as a question your pipeline already answers somewhere, then confirm the answer against your own configs before the first production write. The main takeaway is that ECS mode in Logstash 8 can rename fields, so dashboards, alerts and templates built on legacy names need review before cutover.
| Mapping decision | What to decide or check | Confirm before go-live |
|---|---|---|
| Event field names | Logstash 8 runs plugins in ECS compatibility mode by default in OSS 8.0, which changes how some fields are named unless the client overrides it | List every field your dashboards, alerts and saved searches read, and compare each against the ECS names your events now produce |
| Legacy field behavior | Keeping pre-ECS field names requires overriding the compatibility setting on compatible OSS clients | Confirm the override is set on every pipeline and that it matches the naming your existing content expects |
| Index name pattern | Choose a pattern such as a fixed prefix plus date, and keep it the same across inputs and outputs | Check that the index setting in the output matches the pattern your index template and retention rules target |
| Date math in index names | Date math in the index name controls how often new indexes roll over and how large each one grows | Confirm the time zone and rollover granularity with the team that searches and retains the data |
| Index templates | Create templates for mappings and settings on the cluster before the first write, so new indexes do not inherit dynamic mappings by accident | Confirm field types, especially timestamps and keyword fields, against a sample event from each pipeline |
| Mappings for existing fields | Field type conflicts across indexes can block writes or break queries, so each field needs one type across the pattern | Run a test event through each pipeline and inspect the resulting mapping in a non-production cluster |
| Lifecycle policy owner | Index State Management or ILM policies decide retention and deletion, and one named team should own them | Confirm who approves retention changes and whether the policy is attached through the template or applied manually |
Why ECS compatibility mode in Logstash 8 changes your field names
Logstash OSS 8.0 runs every plugin in ECS compatibility mode by default, so a pipeline that worked on Logstash 7 can start writing different field names without any change to its configuration. Compatible OSS clients such as the OpenSearch output plugin must override this setting to keep the legacy behavior, which means the field layout is decided by a per-plugin configuration choice rather than by the upgrade itself. Check the ecs_compatibility setting on every input, filter and output in each pipeline, and record the value you chose, because a plugin that falls back to the default will silently change its output.
Choose between the legacy layout and ECS before the first index is written. Keeping the legacy layout preserves existing dashboards, saved searches, alert rules and any downstream parsers that expect current field names, and it is the lower-risk option when you are moving clusters and not redesigning data models. Adopting ECS gives you a shared schema that security content and newer integrations often assume, but it requires mapping old fields to ECS names and updating every consumer. Confirm which field names your Dashboards visualizations, detection rules and log-based alerts reference, and confirm with your security team whether any rule depends on ECS fields before you pick a side.
Changing the mode partway through creates a split index history. Documents written before the change use one set of field names and documents after it use another, so a visualization or detection that queries a single field will return incomplete results for the period around the switch, and index templates that pin field types can reject values that arrive under a new name. Make the decision in the design phase, write it into the index templates and pipeline configuration together, and test with sample logs from each source through the complete path into OpenSearch Dashboards before production traffic arrives.
Securing the Logstash to OpenSearch connection
A Logstash pipeline that writes to OpenSearch is a non-human identity with standing write access to your data, so it needs the same controls as any service account. The cards below cover the identity, transport, secrets, network and audit controls to plan before the first pipeline goes live.
Dedicated write-only identity
Create a separate OpenSearch user for Logstash rather than reusing an administrator or a shared ingest account. Map it to a role that grants only the write and index-creation permissions it needs, limited to the target index patterns such as logs-app-*. Keep read, delete and cluster-admin rights out of that role so a leaked pipeline credential cannot search, drop or reconfigure data. Confirm the exact action names for your OpenSearch version in the Security plugin documentation before you write the role.
Role-based access control scope
The Security plugin applies role-based access control to each request, so the Logstash role defines the ceiling for everything the pipeline can do. Review which index patterns, aliases and index templates the role can touch, and test it with a pipeline that deliberately targets an index outside the pattern. Document who approves changes to that role, because a broad wildcard added later quietly widens the blast radius of every pipeline using that identity.
TLS with certificate verification
Enable TLS on the transport and HTTP layers of the cluster and configure the OpenSearch output plugin to trust your internal certificate authority. Turn off verification options such as disabling hostname or certificate checks only as a short-term diagnostic step. Plan certificate expiry and rotation for the Logstash side as well as the nodes, since an expired client trust chain stops ingestion without an obvious error in the cluster itself.
Credentials kept out of pipeline files
Do not place the Logstash password in a .conf file, a Git repository or a shared configuration template. Store it in the Logstash keystore and reference it from the output block, and restrict file permissions on the Logstash configuration and keystore directories to the service account that runs Logstash. Ask your secrets team how the password is rotated, who can read it at rest, and whether rotation requires a pipeline restart in your environment.
Network restriction to cluster ports
Limit inbound traffic to the OpenSearch HTTP port from the Logstash hosts only, and keep the transport port used between nodes off the path that ingestion uses. Place Logstash in the same network zone as the pipeline's source systems where possible, so that data does not cross untrusted segments. Verify the rules with a connection test from a host outside the allowed set, and record the port list in the design so that firewall reviewers can compare it with what is open.
Audit logging for the Logstash identity
Enable the Security plugin audit log so that writes made under the Logstash identity are recorded with a timestamp, source address and target index. Decide which events to capture, since full request logging increases storage use, and set a retention period that matches your log policy. Review the audit trail on a schedule for writes to indexes outside the expected pattern, and confirm that the audit records themselves are stored where the Logstash identity cannot modify them.
Common failures when Logstash writes to OpenSearch
This table pairs each common failure with its likely cause and the check to run first. Read it when a pipeline stops writing, dashboards go blank or a new node rejects events. The main takeaway is that most failures trace to version reporting, field naming, index templates, certificates or roles, and each can be confirmed before changing the pipeline.
| Failure | Likely cause | Fix and check to run |
|---|---|---|
| Version check rejection | The cluster reports a newer version than the output plugin or Logstash OSS expects | Confirm the cluster version and the plugin version against the Logstash compatibility matrix, then review the version-reporting setting for OpenSearch 1.x and 2.x clusters |
| ECS field names break dashboards | Logstash 8 runs plugins in ECS compatibility mode by default, so field names differ from legacy pipelines | Set ECS compatibility explicitly on each plugin, then compare field names in a test index against the dashboard and alert queries |
| Template or mapping conflict on first write | An existing index template or dynamic mapping assigns a field type that the new events do not match | Inspect the index template and the mapping of a target index, then check the rejected documents in the Logstash log for mapper_parsing_exception messages |
| TLS certificate trust error | The Logstash host does not trust the CA that signed the OpenSearch HTTP certificate | Verify the CA file path in the output configuration, confirm the certificate chain with a TLS client test from the Logstash host, and check certificate expiry dates |
| Credential or role denial on index writes | The Logstash user lacks index creation or write permissions on the target index pattern | Test the user with a single authenticated write, then review the role mapping and index permissions in the Security plugin and the audit log for denied actions |
| Plugin or Logstash version outside the matrix | The output plugin, Logstash OSS release or cluster version is not in the supported combination | Record all three versions, match them against the published matrix, and align the pipeline to a supported pair before troubleshooting further |
Questions teams ask before changing Logstash output to OpenSearch
Is the OpenSearch output plugin for Logstash free and Apache 2.0 licensed?
The plugin is open source, and the OpenSearch project releases its software under the Apache License, Version 2.0. The OpenSearch FAQ does not describe any paid edition of the project. Your cost is therefore the work to plan, build, test and run the pipelines, plus the infrastructure they run on. Confirm the license of any other Logstash plugin your pipelines depend on, because those are separate projects with their own terms. Check the OpenSearch tools documentation for the current plugin and compatibility details before you commit to a version.
What drives the effort of a Logstash to OpenSearch move?
The main driver is how many pipelines you run and how many systems read their output. A single pipeline that writes to one index with no downstream consumers is a small change. A pipeline that feeds dashboards, alerts, saved searches, scripts and other teams needs each of those dependencies tested against the new output. Other drivers are the number of Logstash versions in use, custom or community plugins in each filter chain, and the volume and retention of the indexes involved. Ask any partner to inventory pipelines and downstream consumers first, because that inventory sets the scope of the quote.
Is the version-reporting setting always needed?
No. The setting is needed when a client checks the server version and refuses to continue when it sees a version it does not recognize. OpenSearch 1.x and 2.x can report version 7.10.2 for such clients, including Logstash OSS and Filebeat OSS 7.x to 7.12.x. If your pipelines run a Logstash release that does not perform this check against your cluster, you may not need it. Test the pipeline against a non-production cluster with the setting off first. Keep in mind that the setting exists to satisfy legacy clients, so plan to move those clients to versions that support OpenSearch directly.
How does ECS compatibility mode affect existing dashboards?
ECS compatibility mode changes the field names that some plugins write, so dashboards, alerts and saved searches built on the old field names can stop matching new documents. Logstash OSS 8.0 runs all plugins in ECS mode by default, and compatible OSS clients must override that to keep legacy behavior. Before cutover, list every field each dashboard and alert uses, compare those names against what the pipeline writes in each mode, and decide whether to keep legacy behavior or update the consumers. Test with a sample of real events, because a mapping change can look correct in a single document and still break a query over a time range.
Can our own team do this move without a partner?
Often yes, if the team already runs Logstash and can read the pipeline configuration, and if the environment has a non-production cluster that matches production closely enough for testing. The work is mostly careful inventory, configuration changes, index mapping checks and a controlled cutover. Teams usually need outside help when pipelines are numerous or poorly documented, when many downstream consumers depend on field names, or when the cluster is governed by compliance controls that must be evidenced during the change. Whichever route you choose, ask for the change plan in writing before work starts.
What does the work need from our team?
Plan to provide four things. First, a pipeline inventory: each Logstash pipeline, its inputs, filters, outputs, plugin versions and owners. Second, a list of downstream consumers, including dashboards, alerts, saved searches and scripts. Third, access to a test cluster and test indexes where you can replay sample events and compare documents before and after the change. Fourth, a cutover window agreed with the teams that depend on the logs, along with a rollback path. Your team should also name a person who can approve field name changes for consumers outside the platform group.
What should a quote for this work include?
A quote should follow from a written scope and list the pipelines in scope, the Logstash and plugin versions involved, the OpenSearch version and the test and production clusters. It should state what is one-time work, such as inventory, configuration changes, testing and cutover, and what recurs, such as later upgrades and support. Ask how the partner will handle the version-reporting setting and ECS mode, how they will verify consumers and what evidence you will receive. DeployOpen does not publish a price list, and a quote follows from the agreed scope.
How DeployOpen scopes and delivers a Logstash to OpenSearch move
DeployOpen starts by inventorying your existing Logstash pipelines, plugin versions and target OpenSearch version, then agrees a written scope before any change is made. The work runs in your own infrastructure, with pipelines tested against a non-production cluster and handed over with runbooks your team can operate.
How we scope
- We inventory every Logstash pipeline, its input, filter and output plugins, and the Logstash version in use.
- We confirm the target OpenSearch version and check it against the OpenSearch Logstash compatibility matrix before changing anything.
- The written scope lists which pipelines move, the ECS compatibility decisions, and the tests and deliverables agreed up front.
How we build
- We configure the OpenSearch output plugin per pipeline, including hosts, TLS, credentials and index naming for your environment.
- We set the version-reporting setting only where a client version check requires it, and document why it is enabled.
- We run pipelines side by side against test data, compare document counts and mappings, then cut over with a rollback path.
How we hand over
- We deliver the pipeline configuration files, plugin versions and a record of each ECS compatibility override.
- We document the verification results, known limits and the steps to roll back a pipeline during the first weeks of operation.
- We walk your platform and security teams through the setup so they can review the configuration and run it without us.
How we support
- Fixed-scope engagements close with agreed deliverables, and any follow-on work is quoted separately from a written scope.
- Ongoing support, upgrades and continuous testing are available as a retainer if you want DeployOpen to keep pipelines current.
- Before any Logstash or OpenSearch upgrade, we re-check the compatibility matrix and retest the affected pipelines in a staging environment.

