Why Temporal advanced visibility needs Elasticsearch or OpenSearch
A self-hosted Temporal Service needs an advanced visibility store once teams want to search workflow executions by more than their IDs and status, or filter on custom search attributes across a large number of executions. Temporal recommends Elasticsearch or OpenSearch for anything beyond a few workflow executions. The store is a separate backend from the persistence database that holds workflow history. You configure the integration on the Temporal Server, pointing its visibility settings at the search cluster, and the cluster itself is deployed, secured and sized as a platform in its own right. Advanced visibility serves the Web UI, the CLI and the list APIs, so an operator looking for a stuck or failed workflow depends on this store being healthy even though workflow execution itself does not.
The choice between the two engines is usually made on licensing, supported versions and what your platform team already runs. The Temporal visibility docs list Elasticsearch 7 and 8 and OpenSearch 2 or later as supported stores from Temporal Server 1.30.1. OpenSearch is a fork of open source Elasticsearch 7.10 and is wire-compatible with it, and its project is released under the Apache License, Version 2.0 with no paid edition described in its FAQ. Confirm with your legal and procurement teams whether that licensing position fits your policy, and confirm the exact client and server versions pairing against the Temporal visibility documentation before you pick a version, since compatibility is stated per Temporal Server release line.
Decide early, because switching stores later is not a simple setting change. Record which engine you will run, which version line, who operates the cluster, and how its access is controlled. Check the search cluster's own authentication and TLS settings alongside the Temporal Server's, because the default Temporal configuration does not restrict API access. Plan for the index schema, since custom search attributes must be registered before they can be queried, and for a dual visibility period if you later change stores. The Temporal visibility documentation is the natural next read for the supported version matrix and the store-specific settings.
What you need before configuring visibility
Advanced visibility adds a second store that Temporal Server reads for workflow search and custom search attributes, so it depends on the server release, the persistence store and the deployment tooling already in place. The cards below cover the version and deployment facts to confirm first, then the search cluster and security material to prepare before any configuration change.
Supported server version for the search store
Elasticsearch 7 and 8 and OpenSearch 2 or later are supported as advanced visibility stores from Temporal Server 1.30.1. Confirm that the running server is at or above that line before choosing a store, because an older server cannot use these backends. The current line in use should be the latest patch of the minor version you run. The release line in use is v1.32.1, with patch lines v1.31.4 and v1.30.8 for earlier minors. Check the release notes for the exact patch you plan to run.
Visibility docsCurrent persistence store and its version
Advanced visibility is a separate store from the persistence store that holds workflow history and shard data. Record which persistence backend you already run and its version, because the supported matrix for that backend and the upgrade order both depend on it. Persistence is tested on Cassandra, PostgreSQL and MySQL, and SQLite is for development only. Confirm the schema version in place so that visibility changes do not get mixed up with persistence schema upgrades.
Persistence docsHelm chart floor for newer server images
If you deploy with Helm, Helm chart versions below 0.73.1 do not work with server images 1.30 and later. Pin the chart to 0.73.1 or newer before changing the visibility settings, so the values file and the server image agree. Review the chart values that point the server at the visibility store, and keep the chart and image versions recorded together in your change record. Compose, binary or custom Go build deployments need the same version check against their own images.
Non-public placement of Temporal services
Temporal services should run on hosts not reachable from the public internet, with network access limited to trusted internal networks. Apply this to the frontend, history, matching and worker hosts, and to the search cluster they reach. Confirm that the route from Temporal Server to the search endpoint stays on the internal network, and that load balancers and ingress rules do not expose the frontend. Document these paths before opening any port to the search store.
Deployment guideSearch cluster version and license choice
Decide between Elasticsearch 7, Elasticsearch 8 and OpenSearch 2 or later before building the cluster. OpenSearch is released under the Apache License, Version 2.0, and its FAQ does not describe a paid edition. Confirm the license terms for Elasticsearch with its vendor, and confirm the exact version you plan to run against the Temporal support matrix. Plan the upgrade path for the search cluster, since OpenSearch maintenance windows and end-of-life dates differ by version.
OpenSearch releasesTLS certificates and service accounts
Plan the TLS certificates for connections between Temporal Server and the search cluster, and the service account the server uses to write and query visibility records. Use separate credentials for the server and for any operator tooling, and confirm that the search cluster role grants only the index access the server needs. Temporal supports mTLS for internode and frontend traffic, and the same certificate authority practice should cover the search connection. Record certificate expiry dates and the rotation owner before go-live.
Security docsHow to configure Elasticsearch or OpenSearch as the visibility store
This sequence connects a supported search cluster to self-hosted Temporal so workflow executions and custom search attributes can be queried from the Web UI and tooling. Each step ends with a check that confirms the store is working before the next step begins.
Confirm the supported search version
Before building anything, check the Temporal visibility documentation against the Temporal Server version you run. Temporal advanced visibility supports Elasticsearch 7 and 8, and OpenSearch 2 or later from Temporal Server 1.30.1. Confirm which search version your platform team can operate and that it appears in the support matrix for your server line. OpenSearch's releases page lists current and maintained versions, so pick a line that is still under maintenance. Done when the chosen store name and version are written down next to the server version in your change record.
Create the search cluster and index templates
The platform team builds the Elasticsearch or OpenSearch cluster in infrastructure you control, with TLS for node and client traffic and authentication enabled before any Temporal component connects. Sizing and node layout follow your own load, so ask your search vendor or the OpenSearch cluster guidance for capacity planning rather than copying a generic layout. Create the index template that Temporal's visibility schema expects, using the naming you will pass to the server configuration. Done when the cluster reports healthy status and a test index can be created and deleted with the service account Temporal will use.
Run the visibility schema setup
Run the schema setup tooling that Temporal documents for Elasticsearch or OpenSearch against the target cluster, using the same Temporal version as the server you will deploy. The tool creates or updates the index schema for workflow executions and records the search attribute fields. Keep the command and its output in your runbook. Done when the setup completes without errors and a schema query against the visibility index returns the expected field list, including the default search attributes.
Add the visibility store settings to the server configuration
Add the advanced visibility store block to the Temporal server configuration, pointing at the cluster endpoint, the index name and the credentials created in the earlier step. Store secrets in your secret manager and reference them, not in plain files. Apply the same block to every service that reads visibility, which in practice means the services your deployment method runs, whether Helm values, Docker Compose or binaries. Done when the configuration validates on a staging cluster and the server starts without visibility connection errors in its logs.
Register custom search attributes
Register each custom search attribute your workflows will filter on, with its type matched to the data the workflow sends, such as keyword, text, int or datetime. Use the Temporal CLI or the admin API against the namespace, and record the names in a shared register so client teams do not create conflicting attributes later. Changing an attribute type after data exists is a schema decision, so review the list with the workflow owners first. Done when the attribute list for the namespace shows every registered name and type.
Restart the services and confirm the store is in use
Restart the Temporal services so they load the new visibility settings, then run a test workflow in a non-production namespace that sets a value for one custom search attribute. Watch the server logs for visibility write errors during the restart. Done when the test workflow appears in the Web UI or in a list query, and a search filtered on the custom attribute returns that workflow.
Verify search results before production use
Run a set of representative queries that your operators and client teams will use, including status filters, time ranges and custom attribute filters, and compare the results with what the workflows actually did. Confirm that access to the search cluster is limited to the Temporal services and approved operators, since the store holds workflow metadata. Record the verified queries in your runbook so later upgrades and store changes can be retested the same way. Done when every query in the list returns the expected executions and the access review is signed off.
How the visibility store is written to and queried
The Temporal Server keeps two stores apart: the primary persistence database holds workflow state and history, and the advanced visibility store (Elasticsearch or OpenSearch in this setup) holds the records used by list and search queries. When a workflow execution starts, changes state or closes, the server writes a visibility record to the search store, and list and search API calls such as those behind the Web UI and ListWorkflowExecutions are answered from that store rather than from the primary database. The two writes are not one transaction. A workflow can be correctly recorded in primary persistence while its visibility record is still pending, so the search store should be read as a derived index of execution state, not as the source of truth for it.
The practical consequence is a delay before a new or changed execution appears in search results. Queries that filter on custom search attributes or on execution status can therefore return a stale view for a short period, and code that starts a workflow and immediately searches for it can miss the new execution. Build around this: look up a known workflow by its ID through the describe call, which reads primary state, and reserve visibility queries for dashboards, operator tooling and batch selection where a brief lag is acceptable. Ask your team to measure the indexing latency in your own environment under realistic write volume, because it depends on cluster sizing, bulk settings and load, and Temporal's documentation does not give a figure you can plan against. The Temporal visibility documentation is the place to confirm current behavior for your server version.
How workflow data flows to the visibility store
The diagram starts with clients and workers inside the internal network, which send requests to the Temporal frontend. The frontend hands workflow state changes to the history service, which writes execution records to primary persistence and sends visibility documents to the Elasticsearch or OpenSearch store. When operators search executions in the Web UI or CLI, the query goes to the frontend and is answered from the visibility store, so check that this store is reachable only from trusted internal networks and that its own access controls are in place.
Workflow requests flow through the frontend and history service into primary persistence and the visibility store.
Mapping custom search attributes to index fields
This table lists the custom search attribute types Temporal advanced visibility accepts, what each suits, who typically sets the value and who queries it. The declared type decides how a value can be filtered, so choose it before workflows write data. Confirm the supported types and any index behavior against the Temporal visibility documentation for your server version.
| Declared type | Suited to | Set by | Queried by |
|---|---|---|---|
| Keyword | Exact-match values such as order ID, tenant or workflow status | Workflow code through SDK search attribute upserts | Operators and support teams filtering exact values |
| Text | Free-text content that needs word-level matching | Workflow code, only for values meant for full-text search | Users running text queries; test matching on your store |
| Int | Whole-number values such as retry counts or item totals | Workflow code or client on start or update | Dashboards and filters using numeric ranges |
| Double | Decimal values such as scores or ratios; confirm precision | Workflow code on start or update | Analysts filtering by numeric thresholds |
| Bool | True or false flags such as manual review required | Workflow code when the condition changes | Queues and alerts filtering open flags |
| Datetime | Timestamps such as due dates or approval deadlines | Workflow code using timezone-aware values, stored in UTC | Overdue reports using date range queries |
| KeywordList | Several exact-match values per workflow, such as tags; confirm support | Workflow code passing a list of strings | Teams filtering by any matching tag |
| Changing a type later | Needs a planned index schema update once data exists | Platform team, alongside the server upgrade plan | Confirm supported type changes for your server version |
Elasticsearch or OpenSearch: choosing the store for your environment
Licensing decides what you can deploy, modify and redistribute without a commercial agreement, so review it before you compare features. OpenSearch is released under the Apache License, Version 2.0, and its FAQ does not describe a paid edition. Elasticsearch licensing has changed over time, so check the current terms for the exact versions you plan to run with your legal or procurement team rather than relying on older summaries.
- Open-source terms: OpenSearch software is Apache 2.0 licensed across the project, which simplifies internal review.
- Edition boundaries: Confirm which Elasticsearch features and distributions your organization is permitted to use, since paid tiers may gate security or monitoring features.
- Governance: The OpenSearch Software Foundation is a Linux Foundation project, and it is not involved in technical oversight of the OpenSearch project.
- Contract records: Keep the license position for each store in your architecture decision record so auditors can trace it.
- Ongoing review: Licensing can change between releases, so repeat this check at each planned upgrade.
Before you choose, ask your legal team to confirm the license for the exact store version you intend to deploy.
Temporal advanced visibility supports Elasticsearch 7 and 8 and OpenSearch 2 or later from Temporal Server 1.30.1. The supported pairing depends on both the store version and the Temporal server release, so a store that works with one server line may not be listed for another. Start from the server version you plan to run, then select a store version from its supported list.
- Elasticsearch range: Elasticsearch 7 and 8 are the documented versions for advanced visibility.
- OpenSearch range: OpenSearch 2 or later is supported from Temporal Server 1.30.1.
- Server floor: Earlier server lines have different store support, so confirm the minimum server version for your chosen store.
- Wire compatibility: OpenSearch is a fork of Elasticsearch 7.10, but treat that compatibility as background, not as proof of support for a given Temporal release.
- Test matrix: Verify the exact server and store pair in a non-production environment before you go live.
Confirm the supported store versions for your target Temporal server release in the visibility documentation before you pick a version.
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 a version receives bug fixes and security patches but no new features. Plan store upgrades around this cadence so you do not fall off a supported line while the Temporal server moves forward.
- Release cadence: OpenSearch 3.8.0 was released on August 4, 2026 and 3.9.0 on September 29, 2026.
- Maintenance window: Version 1 reached end of life on May 6, 2025, and version 2 is maintained through the 4.0 GA release.
- Upgrade paths: OpenSearch documents migration and upgrade guidance, and Elasticsearch upgrades follow their own policy.
- Coordination: Store upgrades and Temporal server upgrades should be sequenced in one change plan.
- Support clock: Record the end-of-maintenance date for each store version in your operations calendar.
Check the OpenSearch releases page for current end-of-maintenance dates before you select a version.
The store you pick will be operated by the people who already run your search, log and monitoring estate. Existing skills, deployment tooling and security controls often matter more than small differences in feature lists. Assess what your team can patch, back up, secure and monitor on day one, then decide whether a new store adds an operational burden you cannot staff.
- Deployment tooling: OpenSearch documents installation with Docker, Helm, the OpenSearch Kubernetes Operator, tarballs, RPM and Debian packages, and Ansible.
- Security model: OpenSearch Security provides role-based access control, document- and field-level security, audit logs and TLS, and supports SAML, OpenID Connect, LDAP and other authentication backends.
- Existing estate: If your organization already runs one store, reusing it reduces new runbooks, but confirm the Temporal version pairing first.
- Dashboards and alerts: Check how your team already builds dashboards and alerts against the store.
- Staffing: Identify who owns index lifecycle, capacity and incident response for the visibility store.
Confirm with your platform and security teams which store your team can operate and secure, then document the decision with the Temporal version it supports.
Index schema updates and dual visibility during a change of store
Adding custom search attributes changes the index schema of your advanced visibility store, so the schema update is a prerequisite step, not an afterthought. Each new search attribute needs a corresponding field in the Elasticsearch or OpenSearch index before the server can write and query it. Where Temporal release notes call for a schema update, run it before the server upgrade, because the new server may expect fields the old schema does not have. Confirm the exact procedure, the tool and the ordering for your specific Temporal Server version in the Temporal visibility docs and the upgrade guide, and check whether the release notes for your target version require a visibility schema change at all. Treat the search attribute definitions as a versioned change that goes through the same review as application code.
Dual visibility is the mechanism for moving between visibility stores without a cutover gap. While it is enabled, the server writes workflow visibility records to both the old and the new store, and reads can be directed to the store you have validated. This lets you move queries and dashboards over gradually and keep the old store as a fallback until you are satisfied. Confirm in the current Temporal documentation which dual visibility settings, dynamic configuration keys and read-routing options your version supports, and whether writes to the secondary store are asynchronous. Plan the order explicitly: create the target index and schema, enable dual writes, backfill or verify historical records if your queries need them, switch reads, then retire the old store.
The main risk of dual visibility is that a record can exist in one store and not the other, for example after a write failure to the secondary store, a store outage during the migration window, or workflows that closed before dual writes began. A workflow that is missing from the new store will not appear in searches, and operators may conclude it never ran. Build a reconciliation check before you switch reads: compare counts and sampled workflow IDs, run representative search queries against both stores, and record any gaps with a plan to backfill them. Keep the reconciliation scripts and their results as migration evidence, and repeat the check after read traffic has moved, since that is when missing data is first noticed.
Securing the visibility store and its access path
The visibility store holds searchable workflow metadata and any custom search attributes you add, so it needs the same access discipline as the Temporal Service itself. The four controls below cover the server authorization default, the search cluster's own authentication and encryption, what workflow data reaches the index, and where the cluster is reachable from.
Replace the default authorizer
If no Authorizer is configured, self-hosted Temporal uses the noopAuthorizer, which allows every API request with no authentication or access control. Anyone who can reach the frontend can list and query workflows through the visibility path. Before go-live, confirm that an Authorizer and ClaimMapper are set on the server, that namespace roles are mapped, and that a request without valid credentials is rejected in a test environment.
Temporal security docsAuthenticate and encrypt search cluster traffic
Temporal connects to the search cluster as a client, so the cluster's own controls apply. OpenSearch Security provides TLS for node and client traffic and supports SAML, OpenID Connect, LDAP, Active Directory, Kerberos and JWT backends. Use a dedicated service account with only the index permissions Temporal needs, and check that TLS is enforced between nodes and from the Temporal services to the cluster.
OpenSearch security docsLimit what workflow data gets indexed
Search attributes are copied into the visibility store and can be read by anyone with search access, so a field that holds a customer identifier or account number becomes queryable data. Keep indexed attributes to the keys operators need for search, avoid putting raw payload content into them, and use field-level security or field masking in the cluster where different teams need different views. Workflow payloads should also be encrypted with a custom codec before they leave the worker.
Keep the search cluster off public networks
The Temporal deployment documentation says services should run on hosts not reachable from the public internet, with access restricted to trusted internal networks. The same applies to the Elasticsearch or OpenSearch endpoint, which should accept connections only from Temporal frontend and worker hosts and from named administrator paths. Confirm the cluster's HTTP port is not exposed through a load balancer, a public ingress or a debugging tunnel, and review audit logs for unexpected clients.
Temporal deployment docsCommon visibility failures and how to fix them
This table lists the failures teams most often hit when running Temporal advanced visibility on Elasticsearch or OpenSearch, with the likely cause and the fix for each. Read it while troubleshooting, and check the upgrade ordering row before changing either the server or the store.
| Failure | Likely cause | Fix |
|---|---|---|
| Store version not supported | Elasticsearch or OpenSearch version outside the range the running Temporal Server supports. OpenSearch 2 or later needs Temporal Server 1.30.1 or later. | Confirm the store version against the Temporal visibility docs for your server release. Upgrade the server or move the store to a supported version before continuing. |
| Custom search attributes missing from queries | Attribute was never registered with the visibility store, or the server was not restarted or reconfigured after the attribute was added. | Add the attribute through the Temporal CLI or API for the namespace, then confirm it appears in the attribute list. Test with a new workflow, since older executions may not be indexed with it. |
| Schema mismatch after a server upgrade | Server binary moved ahead of the index schema, so new fields or attributes are not in the index. | Apply the schema update that the release notes call for before upgrading the server. Follow the upgrade ordering rule: move one minor version at a time, to the latest patch first. |
| Index template missing or stale | Index template was not created, or an older template is still applied to new indices after a change. | Recreate the index template for the Temporal visibility index using the version your server expects, then verify index mappings before writing new executions. |
| Authentication errors from the store | Credentials, TLS trust or role permissions for the Temporal visibility user do not match the store's security settings. | Check the username, password and CA certificate in the server configuration. Confirm the role grants index read, write and template permissions on the visibility index. |
| Empty results after dual visibility is enabled | Reads point at the new store before backfill or new writes populate it, or the old store was switched off too early. | Keep dual writes running until the new store holds the data you need. Confirm read routing, then compare counts for a sample of namespaces before retiring the old store. |
Questions buyers ask before setting up Temporal visibility
What does Temporal visibility setup cost, and what drives the effort?
The cost is mostly the people time to design, build and verify the visibility store, plus the infrastructure that runs it. No price is supplied for this work, so ask for a fixed-scope quote built from a written scope. The main drivers are the store you choose (Elasticsearch 7 or 8, OpenSearch 2 or later, or a SQL store), the number of custom search attributes you need, the volume of workflow executions you expect to search, and whether you are standing up a new store or changing an existing one. Ongoing costs recur in the form of cluster hosting, storage growth, patching and index maintenance. Ask any quote to separate one-time build work from recurring operations.
How long does a Temporal visibility setup take?
Duration depends on how many environments are involved, how many search attributes must be designed, and whether the change touches a live Temporal Service. No timeline is supplied for this work, so ask for one in the written scope. The largest variables are the number of namespaces that need search, approval cycles for the cluster and network, and whether you need dual visibility during a store change, which adds a validation period before the old store is retired. A greenfield setup on a test environment usually moves faster than a change on production with existing executions.
What must our team provide before the work starts?
Plan to provide access and time from several groups:
- A Temporal Server environment you can change, with a version chosen from the supported lines on the visibility docs
- An Elasticsearch or OpenSearch cluster, or approval and sizing for one in your infrastructure, with network routes from the Temporal Server hosts
- A test environment that mirrors production namespaces and search attribute needs
- Named staff from platform engineering, security and the workflow owners who will validate search results
Confirm firewall rules and TLS requirements for the store connection early, because cluster placement and network approval often set the schedule.
Can an internal team set up Temporal visibility without a partner?
Yes, a team with Kubernetes or server operations experience and familiarity with Temporal can do it, and the decision depends on capacity and risk rather than technical possibility. The work requires careful handling of index schema, search attribute definitions and the store change sequence, so teams new to Temporal often benefit from a review. Ask whether your staff can own the cluster after handover, cover upgrades and run restore tests. A partner is most useful when the scope is fixed in writing and the team needs outside verification before production changes.
Does OpenSearch licensing differ from Elasticsearch for Temporal visibility?
Licensing is the main practical difference, and it should be checked against your own legal review. The OpenSearch project is released under the Apache License, Version 2.0, and the OpenSearch FAQ does not describe any paid edition. OpenSearch is a fork of open source Elasticsearch 7.10, and it is wire-compatible with that line. Temporal supports Elasticsearch 7 and 8 and OpenSearch 2 or later from Temporal Server 1.30.1, so confirm the exact version pair in the Temporal visibility docs before you choose. Your security and legal teams should confirm which licensing terms apply to the Elasticsearch version you run.
How does Temporal Cloud handle visibility compared with self-hosted?
Temporal Cloud is a managed service, so you do not build or operate a visibility store yourself. Self-hosted visibility means your team chooses the store, sizes it, applies its security settings and handles upgrades and index changes. Cloud pricing is published on a per-action and storage basis, and the pricing page lists support tiers and SLA options, so compare those figures with your own operating cost. Confirm with the vendor which search and retention behavior applies on Cloud, because the self-hosted store choices in this topic do not transfer directly.
What happens to existing workflows during a visibility store change?
Running and completed workflows stay in the persistence store, but search results depend on which visibility store has indexed them. During a change, dual visibility writes to both the old and new stores so you can compare results before cutover. Plan the sequence with the Temporal upgrade docs in mind: schema changes run before server changes when release notes require it, and you should verify search results for representative workflow types before retiring the old store. Ask for a rollback step that keeps the old store readable until validation passes.
How DeployOpen scopes and delivers Temporal visibility work
DeployOpen fixes the scope in writing before any build starts, because the visibility decisions are hard to change later. The written scope names the Temporal Server minor version and the patch level, the visibility store and its exact version, the custom search attribute list with types and owners, the plan for schema changes, and the test cases that prove the result. It also records whether the work is a fresh install or a change of store with dual visibility running during the cutover. Where a store is already in use, the scope states who owns the current index and who signs off each step. DeployOpen is an implementation partner. It builds and documents the setup in your infrastructure, but it is not Temporal Technologies, is not an official partner of the vendor, and does not issue audit reports or attestations. Your auditors and certification bodies judge the controls.
Delivery follows the scope in the order the platform requires. The team confirms the version pairing against the Temporal visibility documentation and the store's supported releases, prepares the index templates and attribute definitions, and then runs the schema update and the server change in a non-production namespace. Tests cover workflow search with the attribute queries your operators rely on, attribute values written by the SDK, behavior during dual writes, and what happens when the store is slow or unreachable. Each test has an expected result and a recorded outcome. The handover package includes the version matrix, the runbook for adding attributes, the rollback and cutover steps, and the retest results. DeployOpen also offers ongoing support, upgrades and continuous testing as a retainer. Ask for the retainer terms in the quote, including response windows, which are set by the written agreement rather than by this page.

