Wazuh 4.14 upgrade: indexer, manager and dashboard in the vendor's order
Upgrading Wazuh 4.x central components to 4.14.10: version compatibility, the order indexer, manager, dashboard, vendor commands and checks after each stage.
The Wazuh documentation describes the upgrade of central components as a rolling upgrade: the indexer first, then the server, the dashboard last. Agents are upgraded only after the manager. I describe this path for all-in-one and multi-node deployments within 4.x, with the 4.14.10 patch as the target. Addresses and names in the examples are synthetic, and the placeholders in angle brackets come from the documentation.
Version compatibility
The vendor wrote the compatibility rules on the main page of the upgrade guide.
| Rule | Content |
|---|---|
| Central components | Identical version numbers, including the patch level |
| Manager and agents | The manager is always the same version as the agents or newer |
| Indexer and Filebeat | Wazuh indexer 4.14.10 is compatible with Filebeat-OSS 7.10.2 |
My recommendation follows from the first rule: the indexer, manager and dashboard go through in one maintenance window, without stopping on a mix of versions. In all-in-one deployments all commands run on one node, in multi-node clusters each step runs on the node that hosts the given component. The component layout is described in Wazuh architecture.
The target version 4.14.10 comes from the release notes of 5 November 2026. Each release is cumulative and includes the improvements and fixes of earlier ones.
Warnings before you start
The documentation gives two warnings to consider before starting.
- Rolling back to version 4.11 and earlier is not possible. Since 4.12.0 Wazuh uses a newer version of Apache Lucene, which does not support downgrade. Without a fresh indexer installation you will not get back to 4.11. Before the upgrade the vendor tells you to take a snapshot of the indices and points to the OpenSearch documentation.
- Since Wazuh 4.14.1, JSON fields named
userare mapped todstuserduring decoding. Dashboards, searches, integrations and scripts that refer todata.userhave to be changed todata.dstuserbefore the upgrade.
For the second point, a quick review of your own queries and integrations before the maintenance window is a good fit. That is my recommendation, the documentation gives only the warning.
Configuration backup
A separate vendor guide describes the backup of central components. You run it as root on every node you want to protect. A folder with the date makes versioning easier, and the host information goes next to the files.
bkp_folder=~/wazuh_files_backup/$(date +%F_%H:%M)
mkdir -p $bkp_folder && echo $bkp_folder
cat /etc/*release* > $bkp_folder/host-info.txt
echo -e "\n$(hostname): $(hostname -I)" >> $bkp_folder/host-info.txt
On the server you copy, among others, the Filebeat configuration, ossec.conf, client.keys, local rules and decoders, shared group files and the queue directories. The guide contains the full list of paths for the server, the indexer (certificates, opensearch.yml, opensearch-security/) and the dashboard (certificates, opensearch_dashboards.yml, wazuh.yml). The databases from /var/ossec/queue/db/ are copied after the manager is stopped, so that nobody modifies them in the meantime. The backup is verified by the manager status and the list of files:
find $bkp_folder -type f | sed "s|$bkp_folder/||" | less
The guide advises that, besides the alert files, you consider a backup of the cluster indices and its state: settings, node information, index metadata and shard allocation.
Preparing each node
The steps below are done before any component is upgraded, and in a cluster on every node. I run all commands in this article as root, and I omit the # prompt from the documentation.
First the Wazuh repository on every indexer, server and dashboard node. For yum systems and RHEL 9 or later the documentation uses priority=1, for RHEL 8 and earlier protect=1.
# RPM: import the GPG key
rpm --import https://packages.wazuh.com/key/GPG-KEY-WAZUH
# RPM, RHEL 9 and later: add the repository
echo -e '[wazuh]\ngpgcheck=1\ngpgkey=https://packages.wazuh.com/key/GPG-KEY-WAZUH\nenabled=1\nname=EL-$releasever - Wazuh\nbaseurl=https://packages.wazuh.com/4.x/yum/\npriority=1' | tee /etc/yum.repos.d/wazuh.repo
# APT: prerequisites, key, repository
apt-get update && apt-get install gnupg apt-transport-https curl
curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && chmod 644 /usr/share/keyrings/wazuh.gpg
echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" | tee -a /etc/apt/sources.list.d/wazuh.list
apt-get update
The vendor also recommends exporting your own objects from the dashboard: Dashboard management, Dashboards Management, Saved objects, and there Export or Export all objects. Finally, stop Filebeat and the dashboard on the nodes where they run:
systemctl stop filebeat
systemctl stop wazuh-dashboard
On systems with SysV init, use service filebeat stop and service wazuh-dashboard stop.
Indexer: preparing the cluster
The indexer cluster stays available the whole time, because the nodes are upgraded one by one. The steps apply to a single-node and a multi-node cluster. The commands below run on any indexer node, substituting <WAZUH_INDEXER_IP_ADDRESS> and <USERNAME>. The password for <USERNAME> is asked for interactively.
First a backup of the indexer security files:
/usr/share/wazuh-indexer/bin/indexer-security-init.sh --options "-backup /etc/wazuh-indexer/opensearch-security -icl -nhnv"
Then disabling shard replication, so that no replicas are created while the nodes are shut down:
curl -X PUT "https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_cluster/settings" -u <USERNAME> -k -H 'Content-Type: application/json' -d'
{
"persistent": {
"cluster.routing.allocation.enable": "primaries"
}
}
'
Next a flush, which commits the transaction log entries to the index:
curl -X POST "https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_flush" -u <USERNAME> -k
If the indexer has a single node, also stop the manager on the server nodes with systemctl stop wazuh-manager (SysV: service wazuh-manager stop).
Checkpoint (recommendation): the response to the settings change contains "acknowledged" : true and "enable" : "primaries", and the flush returns "failed" : 0 in the _shards section.
Indexer: upgrading the nodes
You upgrade the nodes with the cluster_manager role last, so that the other nodes keep their connectivity. The role of each node is shown by the query:
curl -k -u <USERNAME> https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_cat/nodes?v
On each node in turn: stop the service, keep jvm.options, install the new package, restore your own JVM settings and start the service.
systemctl stop wazuh-indexer
cp /etc/wazuh-indexer/jvm.options /etc/wazuh-indexer/jvm.options.old
# RPM
yum upgrade wazuh-indexer
# APT
apt-get install wazuh-indexer
When the package manager asks about jvm.options, choose to replace it with the file from the new version, and apply your own settings by hand from the jvm.options.old copy. Then:
systemctl daemon-reload
systemctl enable wazuh-indexer
systemctl start wazuh-indexer
For SysV init the documentation gives chkconfig --add wazuh-indexer and service wazuh-indexer start on RPM systems, and update-rc.d wazuh-indexer defaults 95 10 and service wazuh-indexer start on Debian. Repeat the steps on all indexer nodes before the post-upgrade actions.
Indexer: after the upgrade
The actions run on one node. First the script that applies the saved security configuration to the new indexer:
/usr/share/wazuh-indexer/bin/indexer-security-init.sh
Then a check that the upgraded nodes are in the cluster (the same _cat/nodes?v query), and restoring shard allocation:
curl -X PUT "https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_cluster/settings" -u <USERNAME> -k -H 'Content-Type: application/json' -d'
{
"persistent": {
"cluster.routing.allocation.enable": "all"
}
}
'
curl -k -u <USERNAME> "https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_cluster/health?pretty"
Allocation is complete when the status is green and relocating_shards, initializing_shards and unassigned_shards are 0. Only this result closes the indexer stage. Adding replicas and spreading copies across zones is covered in the post on replicas and shard allocation awareness.
The package does not upgrade manually installed plugins, and outdated ones can break the upgrade. On each node list the plugins, remove those marked outdated and install them again in the new version:
/usr/share/wazuh-indexer/bin/opensearch-plugin list
/usr/share/wazuh-indexer/bin/opensearch-plugin remove <PLUGIN_NAME>
/usr/share/wazuh-indexer/bin/opensearch-plugin install <PLUGIN_NAME>
Server: manager
In a manager cluster the upgrade is done on every node, starting with the master node, to shorten the server downtime. The order of the steps is fixed: manager, vulnerability detection configuration (depending on the source version), Filebeat. When upgrading from 4.2.x or earlier the package creates the user and group wazuh in place of ossec, so such a user and group must not exist beforehand.
# RPM
yum upgrade wazuh-manager
# APT
apt-get install wazuh-manager
systemctl daemon-reload
systemctl enable wazuh-manager
systemctl start wazuh-manager
A modified /var/ossec/etc/ossec.conf is not overwritten. You add the settings of new features by hand.
Further steps depend on the version you start from.
| Source version | Additional action |
|---|---|
| 4.12.x or earlier | Add the new CDB lists in the ruleset block, restart the manager |
| 4.7.x or earlier | The vulnerability-detection block, remove vulnerability-detector, check the indexer block, store the indexer credentials in the keystore, restart the manager; in the dashboard uiSettings.overrides.defaultRoute: /app/wz-home |
| 4.8.x or 4.9.x | Manual update of the wazuh-states-vulnerabilities-* mapping (after the Filebeat step) |
From 4.8.x up, the vulnerability detection and indexer connector configuration is skipped, because the blocks already exist. The CDB lists from the first row look like this:
<ruleset>
<!-- Default ruleset -->
<decoder_dir>ruleset/decoders</decoder_dir>
<rule_dir>ruleset/rules</rule_dir>
<rule_exclude>0215-policy_rules.xml</rule_exclude>
<list>etc/lists/audit-keys</list>
<list>etc/lists/amazon/aws-eventnames</list>
<list>etc/lists/security-eventchannel</list>
<list>etc/lists/malicious-ioc/malware-hashes</list>
<list>etc/lists/malicious-ioc/malicious-ip</list>
<list>etc/lists/malicious-ioc/malicious-domains</list>
<!-- User-defined ruleset -->
<decoder_dir>etc/decoders</decoder_dir>
<rule_dir>etc/rules</rule_dir>
</ruleset>
After editing, run systemctl restart wazuh-manager. When upgrading from 4.7.x or earlier, the indexer credentials go into the manager keystore:
echo '<INDEXER_USERNAME>' | /var/ossec/bin/wazuh-keystore -f indexer -k username
echo '<INDEXER_PASSWORD>' | /var/ossec/bin/wazuh-keystore -f indexer -k password
In the indexer block the package inserts one default host, https://0.0.0.0:9200. Replace it with the address of the indexer node from /etc/filebeat/filebeat.yml, and for a cluster add a separate host for each node. The manager reports to the first one on the list and switches to the next when that one is unavailable. An example in the documentation style: https://192.0.2.11:9200.
Server: Filebeat
With every upgrade you also have to refresh the Wazuh module for Filebeat and the alert template, so that they match the new indexer. The order from the documentation: module, template, configuration backup, package, configuration restore, restart, loading the template and pipelines.
curl -s https://packages.wazuh.com/4.x/filebeat/wazuh-filebeat-0.5.tar.gz | sudo tar -xvz -C /usr/share/filebeat/module
curl -so /etc/filebeat/wazuh-template.json https://raw.githubusercontent.com/wazuh/wazuh/v4.14.10/extensions/elasticsearch/7.x/wazuh-template.json
chmod go+r /etc/filebeat/wazuh-template.json
cp /etc/filebeat/filebeat.yml /etc/filebeat/filebeat.yml.old
# RPM
yum upgrade filebeat
# APT
apt-get install filebeat
cp /etc/filebeat/filebeat.yml.old /etc/filebeat/filebeat.yml
systemctl daemon-reload
systemctl enable filebeat
systemctl start filebeat
filebeat setup --pipelines
filebeat setup --index-management -E output.logstash.enabled=false
If you are coming from 4.8.x or 4.9.x, update the wazuh-states-vulnerabilities-* mappings by hand after this step:
curl -X PUT "https://<WAZUH_INDEXER_IP_ADDRESS>:9200/wazuh-states-vulnerabilities-*/_mapping" -u <USERNAME> -k -H 'Content-Type: application/json' -d'
{
"properties": {
"vulnerability": {
"properties": {
"under_evaluation": {
"type": "boolean"
},
"scanner": {
"properties": {
"source": {
"type": "keyword",
"ignore_above": 1024
}
}
}
}
}
}
}
'
The checks of the manager cluster and Filebeat after such a step are described in the article on the Wazuh cluster.
Dashboard
The dashboard comes last. A backup of the settings file before installation:
cp /etc/wazuh-dashboard/opensearch_dashboards.yml /etc/wazuh-dashboard/opensearch_dashboards.yml.old
# RPM
yum upgrade wazuh-dashboard
# APT
apt-get install wazuh-dashboard
When the installer asks, replace opensearch_dashboards.yml with the file from the new version, and then apply your own changes by hand. The values server.ssl.key and server.ssl.certificate must point to files in /etc/wazuh-dashboard/certs/. Starting the service:
systemctl daemon-reload
systemctl enable wazuh-dashboard
systemctl start wazuh-dashboard
The dashboard responds at https://<DASHBOARD_IP_ADDRESS>/app/wz-home. You import the objects saved earlier through Saved objects, the Import button and the ndjson file. Manually installed dashboard plugins are not upgraded either. List them and replace those marked outdated:
sudo -u wazuh-dashboard /usr/share/wazuh-dashboard/bin/opensearch-dashboards-plugin list
sudo -u wazuh-dashboard /usr/share/wazuh-dashboard/bin/opensearch-dashboards-plugin remove <PLUGIN_NAME>
sudo -u wazuh-dashboard /usr/share/wazuh-dashboard/bin/opensearch-dashboards-plugin install <PLUGIN_NAME>
When you are done, the vendor recommends disabling the Wazuh repository, so that an accidental upgrade does not break the environment:
# RPM
sed -i "s/^enabled=1/enabled=0/" /etc/yum.repos.d/wazuh.repo
# APT
sed -i "s/^deb /#deb /" /etc/apt/sources.list.d/wazuh.list
apt update
Version check and checkpoints
You check the package versions on the nodes with the components: yum list installed wazuh-indexer, yum list installed wazuh-manager, yum list installed wazuh-dashboard, or apt list --installed ... respectively. All three must show the same patch.
The list of checks per stage below is my recommendation, put together from the documentation steps.
| Stage | What to check |
|---|---|
| Preparation | Repository on every node, objects exported, Filebeat and dashboard stopped |
| Indexer before | acknowledged and primaries, flush without failed |
| Indexer after | All nodes in _cat/nodes?v, status green, three shard counters equal to 0 |
| Manager | Service running, own ossec.conf settings applied |
| Filebeat | Template and pipelines loaded with the filebeat setup commands |
| Dashboard | The /app/wz-home page opens, objects imported |
| Overall | The same versions of the three packages |
Agents after the manager
Agents are upgraded only after the central components, because the manager must be the same version or newer. The documentation allows a local upgrade on endpoints and a remote one from the dashboard, the command line or the server API. In a manager cluster the vendor recommends the server API.
From the command line, the list of outdated agents and the upgrade of a chosen one:
/var/ossec/bin/agent_upgrade -l
/var/ossec/bin/agent_upgrade -a 003
/var/ossec/bin/agent_control -i 002
In the dashboard this is done in Agents management, Summary: a red dot next to the version means an agent older than the manager, and the user needs the agent:upgrade permission. After a local upgrade on Linux the vendor recommends disabling the Wazuh repository, because the agent must always have the same or an older version than the manager. Agent registration is covered by a separate article on enrollment. Moving to Wazuh 5 is a different path, described in the migration from 4.x to 5.
What the documentation does not specify
- A rollback procedure within 4.12 and later. The only written rules are no return to 4.11 and earlier and the recommendation to take a snapshot.
- Commands to create an index snapshot: the documentation points to OpenSearch.
- Cluster behavior with mixed node versions beyond the rolling upgrade itself, and whether manager worker nodes can run an older version than the master during the work.
- The duration of the work, the required maintenance window and the impact on ingest.
- A backup of the index data itself: the backup guide only suggests thinking about it.
Sources
- https://documentation.wazuh.com/4.14/upgrade-guide/index.html
- https://documentation.wazuh.com/4.14/upgrade-guide/upgrading-central-components.html
- https://documentation.wazuh.com/4.14/migration-guide/creating/wazuh-central-components.html
- https://documentation.wazuh.com/4.14/upgrade-guide/wazuh-agent/index.html
- https://documentation.wazuh.com/4.14/upgrade-guide/wazuh-agent/linux.html
- https://documentation.wazuh.com/4.14/user-manual/agent/agent-management/remote-upgrading/upgrading-agent.html
- https://documentation.wazuh.com/4.14/release-notes/release-4-14-10.html