Rebuilding the Zammad Elasticsearch index

A practical guide to when a self-hosted Zammad needs its Elasticsearch search index rebuilt, how to run the rebuild with enough CPU, what users see while it runs, and how to verify the result.

On this page

When a Zammad Elasticsearch index rebuild is needed

A Zammad Elasticsearch index must be rebuilt after a restore. The Docker backup and restore documentation states that Zammad has to rebuild its Elasticsearch index after a restore, and that the application stays usable while the rebuild runs. Search performance is degraded during that period, and some data may be missing from search results until the index is complete. The practical consequence is that an agent who searches for a ticket shortly after a restore may get an incomplete answer and conclude the ticket does not exist. Before you hand the restored system back to agents, tell them that search is provisional, and plan the rebuild as part of the restore window rather than as an afterthought. Check the restore procedure for your installation method, since the package and Docker paths document their steps separately, and confirm with Zammad's documentation which rebuild command applies to your version.

Elasticsearch is optional for Zammad, but it is strongly recommended. Zammad uses it for faster search, for reporting features, and for searching the content of email attachments. A helpdesk that runs without it will still work, yet operators should expect slower searches and no attachment content search, and that gap is easy to overlook until a customer asks why a PDF sent in an email cannot be found. Decide early whether your deployment needs Elasticsearch at all, because that decision determines whether a rebuild is ever required. If you do run it, treat the index as derived data that can be regenerated from the database, but only if you have a tested restore and rebuild path. Ask your Zammad administrator to confirm the exact trigger conditions for a rebuild in your release notes, since the release notes may also name upgrades that require one.

Which events require a rebuild and which only suggest one

A rebuild is not a routine task that runs on a schedule. The documented trigger is a Docker restore, but Elasticsearch upgrades and Zammad release notes can also make one necessary. Check each event against these cards before you decide.

Restoring a Docker installation

After a Docker restore, Zammad must rebuild its Elasticsearch index. Zammad stays usable during the rebuild, but search is degraded and some data may be missing from results until it finishes. Treat the restore and the rebuild as one procedure, and tell agents that search results will be incomplete while it runs. The backup and restore documentation for Docker describes this step.

Docker restore docs

Package installs need confirmation

The documented rebuild trigger covers Docker restores. For package-installed Zammad, do not assume the same step applies. Confirm the restore procedure for your package version with Zammad's documentation before you restore, and record the answer in your runbook so the on-call engineer does not have to guess during an outage.

Elasticsearch upgrades

Upgrading Elasticsearch to a new release line can change how existing indexes are read and served. Check Zammad's documentation for which Elasticsearch versions it supports before you upgrade, and plan a rebuild and a search test in the same change window. Elastic's current release lines are listed on its GitHub releases page, so compare your target version against what Zammad documents.

Elasticsearch releases

Release notes that call for a rebuild

A Zammad release may state that the search index must be rebuilt. Read the release notes for every version you install, including minor releases and security releases. For example, 7.2 was a minor release, followed by security releases 7.2.1 and 7.2.2, and 6.5.5 was a security release for the 6.5 line. Do not assume a security release skips the rebuild because it looks small.

Zammad releases

Events that only suggest a rebuild

Some symptoms, such as search returning fewer tickets than expected or attachment text not matching, suggest that the index is out of step with the database. These are reasons to investigate, not proof that a rebuild is required. Compare the search results with the database, check the logs, and rebuild only when the documentation or release notes call for it or when a confirmed fault points to the index.

Rebuild options for Docker, package and Kubernetes installs

Docker Compose installs are the case the vendor documents most directly for rebuilds. After a restore into a Docker environment, Zammad must rebuild its search index. The application stays usable during the rebuild, but search is slower and some records may be missing from results until the rebuild finishes. Plan the rebuild as part of the restore, not as an optional follow-up, and confirm the steps against the current backup and restore documentation for Docker before the first production restore.

  • Check the Elasticsearch service: Confirm that the Elasticsearch container is in the same Compose project, is running, and is reachable from the Zammad application containers under the configured hostname.
  • Check the restore sequence: Confirm the database, file storage and Elasticsearch container state after the restore, and record which backup set was used.
  • Check volume ownership: Confirm that the Elasticsearch data volume is not carried over from a different version or copied from a stale snapshot.
  • Check resource limits: Confirm the Compose file gives the Elasticsearch container enough memory and CPU for the rebuild, since limits set for normal operation may slow a full rebuild.
  • Check logs during the run: Follow the Zammad and Elasticsearch container logs to confirm progress and catch errors early.

Before sign-off, run a few known searches for agents and customers and compare the results with what the business expects.

How to run the rebuild step by step

This sequence takes a Zammad instance from a restored or upgraded state to a fully rebuilt search index, with checks at each stage so the team knows when search is trustworthy again.

  1. Confirm Zammad and Elasticsearch compatibility

    The platform owner records the running Zammad release and the Elasticsearch version, then checks both against the software requirements page and the release notes for the target Zammad version. Confirm that the Elasticsearch version is one Zammad documents as supported and that any release note requiring a rebuild applies to your upgrade path. Done when the team has a written note listing both versions and the documented requirement that triggers the rebuild.

  2. Back up before changing anything

    Take a full backup of the database, attachments and configuration using the backup procedure for your installation type, and copy it off the host. Keep the backup until the rebuild has been verified, since a failed reindex is easier to recover from when the source data is intact. Done when a restore of that backup has been confirmed to exist in a location the team can reach, and the backup timestamp is recorded in the change ticket.

  3. Plan the load window and notify users

    Agree with the helpdesk leads when the rebuild will run, because search is degraded during the process and some results may be missing. Decide whether to keep Zammad open to agents and customers or to use maintenance mode for the window, and confirm how the team will communicate that to users. Done when the window, the expected search impact and the communication owner are written down and approved.

  4. Trigger the rebuild with the documented procedure

    Start the index rebuild using the exact command and steps in the Zammad backup and restore documentation for your deployment method, rather than an approach copied from another system. Run it from the environment where Zammad is installed, and confirm the command has been accepted before leaving the terminal. Done when the process reports that it has started and the first log lines show indexing activity.

  5. Allocate several CPU cores and watch resources

    Give the rebuild several CPU cores on the Zammad host and, where Elasticsearch runs separately, make sure its node has enough CPU, memory and disk I/O. Watch CPU load, memory pressure and disk usage during the run, and confirm that neither Zammad nor Elasticsearch is swapping or restarting. Done when resource use has settled into a pattern the team expected, and no service has crashed or been OOM-killed during the rebuild.

  6. Record duration and watch for errors

    Note the start and end times of the rebuild and review the logs for errors or warnings that repeat for the same records. Treat repeated failures on specific tickets as a finding to investigate, not as noise to ignore. Done when the process has finished without unresolved errors, and the start time, end time and any warnings are recorded in the change ticket for the next run.

  7. Verify search results and reopen access

    Test search from an agent account with known tickets, including older tickets, attachment content and a few ticket numbers chosen in advance. Compare results against the database for a sample of records and confirm that the search and reporting views respond normally. Reopen access only after these checks pass, then tell users that search is back to normal. Done when the sample searches return the expected tickets and the team signs off on the change record.

What users and agents see while search is degraded

Ticket handling keeps working while the index rebuilds, but search is the part users will notice. Agents can still open, update, assign and answer tickets, and customers can still write in. What changes is the search layer: results can be slower than usual, and some tickets or attachment text may not appear in results until the rebuild finishes. The Zammad documentation for Docker restores describes this exact state, so the reader should plan for it rather than treat it as a fault. Before the window opens, confirm with your own test instance which screens depend on search (ticket search, overviews that rely on search, reporting, and attachment content search) so the support team knows which answers to expect.

Tell agents and customers before the work starts, not after they report missing tickets. For agents, a short internal notice should name the window, say that search may return incomplete results, and tell them to use the ticket number or the ticket list view for recent work if a search comes back empty. For customers, the message should only be needed if the portal search or the help center is affected, so decide that with your team first. Keep the wording factual and avoid promising a completion time you have not measured on your own data volume. Ask your team to note any gaps they see during the window, since those notes help confirm the rebuild worked afterwards.

Schedule the rebuild away from peak hours, based on your own ticket volume and the agents' shift pattern, and confirm that the window leaves time to check results before the next business day. Rebuild time depends on the amount of indexed content, the host's CPU and disk, and whether Elasticsearch shares a host with other services, so measure the duration on a restored copy in a test environment first. Plan a fallback: if search is still incomplete at the end of the window, the team should know who decides whether to extend the window and who communicates that change. A rebuild started in the middle of a busy shift is far harder to manage than one that begins when queues are light.

Options for hosting Elasticsearch with Zammad

This table compares the Elasticsearch distributions and hosting routes a Zammad team can choose for the search index, covering licensing, security features by tier and support dates. Read it as a checklist: confirm the Elasticsearch version Zammad supports for your release before you choose, then match the license and feature tier to your security review.

OptionLicensingSecurity featuresSupport and version notes
Elastic Free and open (Basic)Elastic License 2.0 or AGPLv3 distribution, both included in the default downloadTLS, file and native user realms and role-based access control are free; single sign-on is not includedConfirm the Elasticsearch version Zammad supports before installing; current release lines are listed on Elastic's end of life page
Elastic Platinum tierSubscription on top of the Elastic distributionIncludes single sign-on, anomaly-based alerting and paid security featuresNo longer available to new customers, who are pointed to Elastic Cloud instead; check your existing contract terms
Elastic Enterprise tierSubscription on top of the Elastic distributionIncludes single sign-on, field and document-level security, encryption at rest support and FIPS 140-3 modeConfirm current pricing and terms directly with Elastic; no fee figures are stated here
Elastic Cloud on Kubernetes (ECK)Operator offered in Basic and Enterprise tiersSecurity depends on the tier and settings you apply to the clusterRelevant only if Zammad and its search cluster run on Kubernetes; Zammad support does not cover Kubernetes-specific issues
OpenSearchApache-licensed fork of open source Elasticsearch 7.10Wire-compatible with Elasticsearch 7.10; confirm the security plugin setup and Zammad support before choosingNot an Elasticsearch release line; confirm with Zammad that it is supported for your version before adopting
Zammad-supported Elasticsearch versionSet by your Zammad release and its documentationDepends on the chosen distribution and tierConfirm this version in the Zammad software requirements before you choose a distribution or upgrade
Elastic end of maintenance datesNot a licensing termUnpatched versions carry security risk for search data8.x end of maintenance is January 15, 2027, and 9.x is October 15, 2027, per Elastic's end of life page
Major version upgradesNot a licensing termIndex format and plugin compatibility change between majorsPlan the index rebuild and Zammad release together, and test on a copy first

How to check that the rebuilt index is complete

Record your baseline before the restore starts, because a rebuilt index can only be judged against what you knew was there. Before you take the backup or change anything, note a set of ticket numbers you can find in the Zammad interface, including a few old tickets, a few with attachments whose text you can recognize, and at least one ticket from each group you expect agents to search. Write down the result counts you get for a handful of common searches and the figures on the reporting overviews you use every day. Keep this record outside the Zammad host so it survives a failed restore. Without it, a missing ticket after the rebuild becomes a debate rather than a finding.

After the rebuild finishes, run the same searches and compare the results with your record. Search for a known ticket by number, by customer name and by a phrase from its body. Then search for a term that only appears inside an attachment, since Zammad uses Elasticsearch for searching email attachment content, and confirm that the attachment-based hit comes back. Open the reporting views and overviews that depend on the index and check that their totals and filtered lists match the baseline. Compare tickets from the period just before the backup, because records created close to the cut-off are the ones most likely to be absent. Confirm the expected search behavior with the Zammad documentation for your version in the backup and restore guide.

Check the Elasticsearch side as well, because a Zammad search can look correct while the cluster is still unhealthy. Query the cluster health endpoint and the index status for the Zammad indexes, and confirm that the cluster reports a state your operations team accepts and that no indexing task is still running. Review the Elasticsearch logs for errors raised during the rebuild. Confirm the exact health states and expected index names against the documentation for the Elasticsearch version you run, since the release lines in use change over time. Sign off only when the searches, reports and cluster state all agree with the baseline, and file the results with the restore record.

Security and operations risks during a reindex

A reindex touches the search cluster, the ticket content it holds and the capacity of the hosts that run both Zammad and Elasticsearch. The risks below connect because each one widens the set of people, networks and systems that can reach ticket data while the rebuild runs.

Keep the Elasticsearch endpoint private

Zammad talks to Elasticsearch over an HTTP endpoint, and a reindex sends large volumes of ticket text through it. Confirm that the endpoint listens only on the private network segment where Zammad runs, and that host firewall rules block it from user networks and the internet. Test from a workstation outside that segment before and after the rebuild, since temporary changes made for troubleshooting are often left in place.

Treat the index as ticket data

The search index holds ticket subjects, article bodies and extracted text from email attachments, so it carries the same sensitivity as the database. Apply the same classification, retention and access rules to it, and confirm who can read the cluster directly. A copy of the index left on a laptop, a shared snapshot repository or an old node after a rebuild is a data exposure, even though Zammad itself is not involved.

Check which security features your tier includes

Elastic's announcement made TLS, the file and native user realms and role-based access control free in the Basic tier from Elasticsearch 6.8.0 and 7.1.0. Single sign-on, Active Directory and LDAP authentication, and field- or document-level security remain in paid tiers. Confirm your license level before you rely on SSO for cluster administrators or on field-level restrictions, and make sure the Zammad connection user has only the privileges it needs.

Elastic announcement

Back up the cluster separately

A Zammad backup does not capture Elasticsearch data, and the reindex rebuilds the index from PostgreSQL rather than restoring it. Snapshots of the cluster, if you take them, are a separate process with their own repository, encryption and retention. Decide whether index snapshots are worth keeping at all, since they duplicate ticket content, and if you keep them, store them under the same controls as the Zammad backups.

Plan CPU and disk headroom first

Rebuilding the index is CPU-intensive and needs free disk while the new index is written alongside the old one. Check the free space on the Elasticsearch data volume and the host's spare cores before you start, and make sure logs and the Zammad backup archive are not competing for the same disk. Ask your team to watch disk and load during the run, and to stop the job if free space falls to a level you have agreed in advance.

Confirm the Elastic version lifecycle

A reindex is a good moment to check that the Elasticsearch version is still supported for your Zammad release. Elastic publishes end of maintenance dates for each line, so compare your running version with the Elastic end of life page before the rebuild. Avoid starting a long reindex on a version that is due for an upgrade in the same window, because a failed upgrade mid-rebuild doubles the recovery work.

Elastic end of life dates

Questions teams ask before rebuilding the Zammad index

How long does a Zammad Elasticsearch index rebuild take?

No fixed duration is published for this, and the time depends mainly on how much ticket, article and attachment content the index holds, how many CPU cores Zammad can use for the rebuild, the disk speed on the Elasticsearch host, and whether Elasticsearch runs on the same machine as Zammad or on its own node. Zammad stays usable while the rebuild runs, but search is degraded and some records may be missing from results until it finishes. Before scheduling a window, measure your ticket and attachment volume on a restored copy in a non-production environment and time the rebuild there, then plan agent communication around that measured result.

What does a Zammad search index rebuild cost?

The Zammad software has no license fee when self-hosted, so the cost is made up of infrastructure, staff time and any support you buy. Infrastructure covers the Elasticsearch host or cluster, spare capacity for the rebuild, and storage for the index. Support is optional: Zammad sells self-hosted subscriptions named Business at 2,999 EUR per year, Enterprise at 5,999 EUR per year and Corporation at 9,999 EUR per year, according to Zammad's pricing page. Business carries a 6 hour response time for self-hosted support. Ask any vendor or partner for a quote that lists the rebuild work, the environment it runs in, and whether it is one-time or recurring.

Can our in-house team rebuild the index without a partner?

Yes, if your engineers can run a Zammad rebuild from the admin documentation, operate Elasticsearch and have a tested restore procedure. The task itself is a short operational step, but the surrounding work is where teams struggle: confirming the Elasticsearch version and its compatibility with the Zammad release, sizing CPU and disk for the rebuild, checking results, and handling an unexpected failure during a busy shift. A team with no Elasticsearch experience should practice on a restored staging copy before doing it on production data.

What do we need to provide before the rebuild starts?

You need a current backup, a restored copy of your Zammad data on the target host, access to the Elasticsearch cluster with credentials that Zammad can use, and a written maintenance window. Also prepare the following:

  • The exact Zammad version and the Elasticsearch version in use, with its license tier
  • Ticket, article and attachment volume estimates from your database
  • Host CPU, memory and disk figures for both Zammad and Elasticsearch
  • A list of agents and teams who need a warning about degraded search
  • A set of known test searches with expected results for the post-rebuild check
When should we bring in a partner for the Zammad index?

Bring in a partner when the rebuild is tied to a larger event, such as a migration, a major upgrade, a restore after an incident, or a move of Elasticsearch to its own host, or when your team lacks someone who can own Elasticsearch operations. A fixed-scope engagement lets DeployOpen plan the rebuild, set the sequence and document the result in writing before work starts. DeployOpen implements, hardens, backs up, upgrades and documents self-hosted platforms in your own infrastructure, but it does not issue audit reports or certifications for the outcome.

Does the Elasticsearch license affect which version we can use for Zammad?

Yes, it can. Elastic's default distribution is under the Elastic License 2.0, which is not an OSI-approved open source license, while AGPLv3 is offered as an OSI-approved option, according to Elastic's licensing FAQ. Confirm which distribution and license your organization is permitted to use, and whether your policy accepts it, before choosing the Elasticsearch version that Zammad will query. Some of the security features you may want, such as single sign-on, are in paid tiers, so check the subscription page for the features you need.

Which Elasticsearch version should we run after a rebuild?

Choose a version that your Zammad release documents as supported, then confirm it against Elastic's end of life dates before you commit. Elastic currently lists 9.x and 8.x release lines with different maintenance end dates, so an 8.x cluster will reach end of maintenance earlier than a 9.x cluster. Check the Zammad software requirements for the supported Elasticsearch versions before any upgrade, because the index rebuild and the version change are easier to manage as separate steps.

How the rebuild flows between Zammad and Elasticsearch

The flow starts with a restore or an Elasticsearch upgrade, after which Zammad's content is read back from PostgreSQL and sent to the Elasticsearch cluster to rebuild the index. Zammad stays usable during this step, but search is degraded and some results may be missing until it finishes. Before users rely on search again, run verification searches for known tickets and attachments and compare the results with what agents expect. Only then return the helpdesk to normal search.

Rebuild sequence from restore or upgrade to verified search.

Related Zammad operations to plan alongside the rebuild

Plan the index rebuild together with the other day-two tasks that change when search is degraded. The most common trigger is a restore: on Docker, Zammad must rebuild the Elasticsearch index after a restore and stays usable while it runs, but search is slower and some records may be missing from results. The sibling topic on backing up and restoring Zammad on Docker covers the restore directory, the backup service and the rebuild step that follows, so read it before you touch the index on a restored system. Whoever runs the restore should also decide who tells agents that search results are incomplete and for how long, because agents will otherwise report missing tickets as data loss.

Two sibling topics decide how safely and quickly the rebuild runs. The performance tuning topic covers moving Elasticsearch onto its own host, which keeps indexing load away from the application and background workers during a long rebuild. Maintenance mode and user broadcasts cover the window in which agents and customers are logged out and told why, which is the right place to schedule a rebuild that will tie up resources. The health check API topic explains how to wire Zammad's monitoring endpoint into your probes, and it also lists email problems the check does not catch. Confirm the exact health check fields and token handling in the Zammad documentation before you use them as a completion signal, and confirm your Elasticsearch version and support status against the Elastic end-of-life page before you plan an upgrade alongside the rebuild.

How DeployOpen works on this

DeployOpen approaches the Zammad search index as part of the wider Zammad deployment, not as a standalone task. The work starts from your Zammad version, your Elasticsearch setup and the restore or upgrade that triggered the rebuild, then covers the rebuild itself, the checks that confirm search is complete, and the runbook your team keeps afterwards.

How we scope

  • Confirm the Zammad version, deployment method (package, Docker Compose or Kubernetes) and whether Elasticsearch runs on the same host.
  • Record which trigger applies: a restore, an Elasticsearch upgrade or a release note that requires a rebuild.
  • Agree in writing the window, the expected degraded-search period and who tells agents and customers about it.

How we build

  • Prepare a pre-rebuild check of Elasticsearch health, disk space, available CPU cores and the database backup state.
  • Run the rebuild in a staging copy first, then record the steps, durations and any errors seen.
  • Test search from agent and admin accounts for tickets, attachments and recent articles before the production run.

How we hand over

  • Deliver a written runbook covering the rebuild command, the expected degraded behavior and the rollback path.
  • Provide a checklist for verifying results, including sample searches and counts to compare against the database.
  • Walk through the steps with your operations team so they can repeat the rebuild without DeployOpen.

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Ongoing support, Zammad upgrades and Elasticsearch maintenance are available as a retainer.
  • Retainer work can include retesting search after each Zammad or Elasticsearch release that changes the index.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.