Why Wazuh upgrades can erase your detection content
Custom rules and dashboards survive a Wazuh upgrade only if they live where the upgrade does not write. If your team runs a 4.x deployment with custom rules, decoders and dashboard views and plans a move to the 4.14 line, the first task is to find out where each piece lives today. Wazuh warns that edits made in /var/ossec/ruleset/rules are lost during upgrades, because that directory holds the default ruleset that the upgrade replaces. Custom rules belong in /var/ossec/etc/rules/, and changes to a default rule are made by copying that rule into the etc location with overwrite="yes" so the local version takes precedence. Any rule, decoder or dashboard change that exists only in the ruleset directory should be treated as lost until it is moved and tested.
The risk recurs because upgrades are routine. Wazuh shipped 4.14 patch releases on 17 March, 23 April, 1 July, 29 July, 23 September and 14 October 2026, roughly one every one to two months, and each one is a chance for a silent loss of detection content. Before the first move, confirm with your own inventory which rules, decoders and CDB lists were edited in place, and ask whether any dashboard customizations exist only in the browser or in saved objects that nobody exported. Plan the export of dashboard customizations, the index snapshot and the backup of indexer security configuration, JVM settings and Filebeat configuration from the Wazuh upgrade guide for central components as part of the change record, not as an afterthought. Treat each future patch as a repeat of this check, because the content you preserve today is only as good as the process that keeps it out of the ruleset directory.
What changes in 4.14 that affects custom content
This table compares the 4.14 release facts against the custom content you maintain, showing what each change means for rules, decoders and dashboards. Read each row as a check to run before and after the upgrade, and treat the release notes as the authority for any specific rule ID or field change.
| Change | Impact on custom content | Action needed |
|---|---|---|
| Release line 4.14, with 4.14.8 (23 September 2026) and 4.14.9 (14 October 2026) as the latest patches | Your target version determines which default rules, decoders and dashboard files you are changing from. Patch releases arrive every one to two months, so a version you test today may be superseded before rollout. | Record the exact current version and target patch, then read the release notes for each patch between them before you start. |
| Ruleset directory replaced on upgrade | Edits made directly in /var/ossec/ruleset/rules are lost when the ruleset is updated, so any change there silently reverts. | Move every edit to /var/ossec/etc/rules/ and confirm that no custom work remains under the ruleset path. |
| Overwrite attribute for default rules | A copy of a default rule in the custom directory with overwrite="yes" replaces the default logic. The copy keeps its own logic even when the default changes in a newer release. | List each overridden rule ID, compare the default rule in the target release notes, and retest the overridden logic after upgrade. |
| Rule ID or field changes in the release | Changes to default rule IDs, decoder names or field names can break overrides, child rules and dashboard filters that reference them. The supplied facts do not list these changes. | Confirm any specific rule ID or field change in the 4.14 release notes, then update references before the cutover. |
| Dashboard customizations | Saved searches, visualizations and dashboards are stored in the dashboard and indexer, and an upgrade is a point where they can be affected. | Export dashboard customizations before the upgrade and store the exports with your change records. |
| Index and configuration backups | The upgrade guide recommends an index snapshot and backups of indexer security configuration, JVM settings and Filebeat configuration before upgrading. | Create and verify these backups before the upgrade, and confirm they can be restored in a test environment. |
| Post-upgrade validation with wazuh-logtest | Overrides and custom decoders can load without error but still produce different results from the previous version. | Run wazuh-logtest against saved sample logs for each custom rule and decoder, and compare output with the pre-upgrade results. |
Where custom rules and decoders must live
Custom rules and decoders belong in /var/ossec/etc/rules/ and /var/ossec/etc/decoders/, never in the ruleset tree. Wazuh warns that edits made in /var/ossec/ruleset/rules are lost during upgrades, because the upgrade replaces that directory with the new default content. The etc path is the one the upgrade leaves alone, so anything you place there survives the package update. Before the first upgrade, list every file under /var/ossec/ruleset that you have modified and move each change into the custom location. Compare checksums or keep a copy of the original files so you can prove later that the defaults are untouched.
To change a default rule, copy the rule into a file under /var/ossec/etc/rules/ and set the overwrite="yes" attribute on the rule element, then edit the copy. The server then uses your version in place of the default with the same ID, while the default file stays in place for the next upgrade. This is safer than editing defaults because your change is visible in one directory, can be reviewed in version control, and can be reapplied after every upgrade without reconstructing what you did. Keep the copied rule's ID unchanged, since the overwrite only applies to a matching ID, and document the reason for each override next to it.
After each upgrade, check whether any default rule ID you overrode still exists in the new ruleset and still means the same thing. A rule ID can be retired, renumbered or split into several rules in a newer release, and an overwrite pointing at a missing ID will silently do nothing. Read the release notes for the version you are moving to, search the new ruleset for each overridden ID, and compare the matched conditions and levels against your copy. Confirm the behavior with wazuh-logtest using a sample event that your override was written to catch. If the ID has changed, decide whether to re-base your override on the new rule or retire it.
Preparing customizations before the upgrade
Most upgrade damage to a Wazuh deployment comes from customizations nobody wrote down. Inventory what you changed, export it, back up the configuration the upgrade guide names, and rehearse the upgrade in staging so you know what survives before production is at risk.
Inventory custom rules and decoders
List every custom rule, decoder and CDB list on the Wazuh server, and confirm each one lives under /var/ossec/etc/ rather than in the ruleset directory. Files edited in /var/ossec/ruleset/rules are lost during upgrades, so any file there is a finding to fix before the upgrade starts. Record which rules override defaults with overwrite="yes", since those are the ones most likely to need a retest after the new ruleset arrives.
Export dashboard customizations
Dashboard saved objects, such as custom visualizations, saved searches and dashboards, are the customizations most often lost or silently altered during an upgrade. The upgrade guide recommends exporting them before you start. Store the exported files in version control with a dated name, and keep a short list of which objects are custom so you can confirm each one imports cleanly afterwards.
Upgrade guideBack up indexer security and JVM settings
The upgrade guide asks you to back up the indexer security configuration and the JVM settings. The security configuration holds roles, users and role mappings that the dashboard depends on. JVM options control memory on each indexer node and often differ between nodes. Copy these files from every indexer node, not only one, and note any hand-tuned values so they can be reapplied and checked after the upgrade.
Back up Filebeat configuration
Filebeat ships alerts from the Wazuh server to the indexer, and its configuration points at the hosts, certificates and templates your deployment uses. The upgrade guide names it as a backup item. Save the live configuration from each server that runs Filebeat, then compare it with the package default after the upgrade so you can see which settings were kept, replaced or dropped.
Upgrade guideCreate an index snapshot
An index snapshot gives you a recovery point for the alert data that the upgrade could damage. Confirm that the snapshot repository is registered and reachable, that the snapshot completes, and that you can list its contents before you proceed. Ask your team to define who approves a rollback and how long a restore would take on your hardware, because a snapshot you cannot restore in time offers little protection.
Rehearse the upgrade in staging
Run the full preparation and upgrade on a staging copy built from production configuration, then use wazuh-logtest to confirm that your custom decoders and rules still match the sample logs you rely on. Staging shows you which overrides conflict with new defaults before users do. Ask whether your staging environment can hold a copy of production data, since that affects how representative the test is and who may access it.
Steps to carry custom content through an upgrade
This sequence protects custom rules, decoders and dashboards before the upgrade, tests them on a staged copy, and leaves a rollback point so the team can confirm the same detections work on the new version.
Inventory custom rules, decoders and dashboards
The engineer responsible for detection content lists every file under
/var/ossec/etc/rules/and/var/ossec/etc/decoders/, plus any rule copies that use overwrite="yes" to change a default rule from/var/ossec/ruleset/rules. Each custom dashboard, saved search and visualization in the Wazuh dashboard is added to the same list with its owner. Edits found under/var/ossec/ruleset/are flagged, because the custom rules documentation warns that those changes are lost during upgrades. The step is done when the list maps every customization to a file or dashboard object and a named owner.Export dashboard customizations and back up configuration
Before any change, the administrator exports dashboard customizations as described in the Wazuh upgrade guide, then creates an index snapshot and backs up the indexer security configuration, JVM settings and Filebeat configuration. The custom rule, decoder and
ossec.conffiles are copied to an offline location with checksums. The check is that each export file opens, the snapshot appears in the repository with a completed state, and the backup archive can be listed and extracted on a separate host. If a snapshot fails, stop and fix the snapshot repository before continuing, because the rollback point depends on it.Stage the upgrade on a copy of the deployment
The team builds a non-production copy of the central components with the same versions, custom files and dashboard exports, then performs the upgrade there first. The order follows the central components upgrade page: indexer, server and dashboard, in the sequence that page describes. Agents are not upgraded in this step, so existing agents continue to report to the staged server. The check is that services start, the server reports as healthy, and the dashboard loads. If a component fails to start, record the error and compare the configuration with the backup before changing anything in production.
Reapply overwrite-based rule changes
On the staged copy, the engineer confirms that every default rule change is present as a copy in
/var/ossec/etc/rules/with overwrite="yes", and that the upgraded default ruleset did not remove or renumber a rule that the custom file references. Any edit that was made directly in/var/ossec/ruleset/is recreated this way. The rule files are validated with a configuration check, and the server is restarted once the check passes. The step is complete when the server starts without rule or decoder errors in its logs and every custom rule ID appears where expected.Import or verify dashboard objects
The dashboard exports from the first step are imported into the staged dashboard, or the existing objects are checked if the upgrade kept them in place. The owner compares each saved search, visualization and dashboard against the inventory, checking that index patterns resolve and that filters still point at fields that exist in the upgraded indexer. Fields that changed name or type are updated and noted. The check is that every object opens and renders data from the staged alerts index without errors. Objects that fail are rebuilt from the export and retested.
Run wazuh-logtest against known log samples
The engineer runs
wazuh-logteston the staged server with a set of saved log samples that each trigger a known custom rule or decoder, plus samples that should still trigger the default rules you changed. For each sample, the output shows the decoder used, the rule ID, the level and the groups. Results are compared with the output recorded before the upgrade, and any difference is treated as a regression. The check is that every sample returns the expected decoder and rule. A mismatch means the rule file, decoder order or rule ID needs correction on the copy before production is touched.Compare alerts from the same input
The team replays the same sample logs, or uses a period of traffic that both environments receive, and compares alert counts, rule IDs and severity levels between the current and staged systems. Differences are sorted into expected changes, such as rules added by the new release, and unexplained changes. Unexplained changes are investigated before production upgrade. The check is a written comparison signed off by the detection owner. If alert volumes diverge without a known cause, delay the production change and review the rule and decoder files for overrides that are no longer applied.
Define the rollback point before production
Before the production upgrade starts, the team records the rollback point: the verified snapshot name, the backup archive location, the package versions currently running and the owner who can approve a restore. The rollback steps are written down and tested on the staged copy so that the team knows the restore path works. The check is that the rollback point is recorded in the change ticket, the snapshot is confirmed restorable and the approver accepts the plan. If any item cannot be confirmed, the production upgrade does not proceed.
Retesting rules and decoders with wazuh-logtest
The point of this section is to prove that detection behavior survived the upgrade, not just that the services started. Build a fixed set of representative log samples for each custom decoder and each custom rule, then run every sample through wazuh-logtest on the pre-upgrade server and save the output. Each saved result should record the decoder name, the rule ID, the rule level and any fields extracted. Keep the samples in version control next to your rule files so the same inputs are used every time. Include at least one negative sample per rule, a line that should not fire, because silent over-matching is as damaging as a missed detection after an upgrade.
After the upgrade, rerun the identical samples on the new server and diff the two outputs field by field. A changed rule ID, a missing decoder match, a different level or a dropped extracted field is a mismatch. Treat each mismatch as a regression until shown otherwise. Check the release notes for the version you moved to, since Wazuh release notes lists changes to the ruleset and decoders. If the release notes describe a change that explains the difference, such as a default rule that was intentionally rewritten, record it as an intended change and confirm it against your overwrite entries. If nothing explains it, look at whether your own overwrite="yes" copy of a default rule is now shadowing a changed upstream rule, and decide whether to update your copy or keep the old behavior deliberately.
Rollback and verification by environment
On dedicated hosts, custom content lives in the server's configuration directory, not in the ruleset directory that the upgrade replaces. Custom rules and decoders belong in /var/ossec/etc/rules/ and /var/ossec/etc/decoders/, and default rules are changed by copying them there with overwrite="yes". Because those files sit outside the packaged ruleset, a file-level copy of the configuration directory gives you a practical rollback point. Pair it with an index snapshot and a backup of the indexer security configuration, JVM settings and Filebeat configuration, as the upgrade guide recommends.
- Configuration copy: archive
/var/ossec/etc/with its rules and decoders before each component upgrade, and record the Wazuh version in the archive name. - Snapshot: take an indexer snapshot so alert history can be restored if an index migration goes wrong.
- Dashboard export: export saved objects from the dashboard so custom views can be re-imported if they are lost.
- Rollback path: confirm that you can reinstall the prior package version on the same host and restore the archived configuration before you start.
- Verification: after the upgrade, check that your overwrite files still load, then run
wazuh-logtestagainst sample events from each custom decoder and rule.
Run the logtest set on the same host you changed, and keep the expected output with the change record.
In a Docker deployment, the rollback point is the persistent volumes and the Compose configuration, not the container image. Containers can be replaced freely, so custom rules, decoders and dashboard state must sit on volumes or bind mounts that the new containers reattach. The exact steps depend on whether you run the default or a customized Compose file and on your version path, so follow the dedicated Docker upgrade topic for those details rather than this summary.
- Volume check: confirm which volumes or host paths hold
/var/ossec/etccontent and the indexer data before you change the image tag. - Compose backup: keep a copy of the Compose file, environment file and any override files with the version that produced them.
- Volume snapshot or copy: back up the volume contents, or the host directories they map to, before the upgrade.
- Post-upgrade confirmation: check that the new containers mounted the same volumes and that custom rules still appear in the loaded configuration.
- Logtest run: execute
wazuh-logtestinside the server container and compare results with your recorded baseline.
If a container recreation silently created an empty volume, the custom content will look missing, so check the mount paths before you assume the rules were lost.
On Kubernetes, custom content should live on persistent volumes attached to the StatefulSets for the server and indexer, and the rollback point is a volume snapshot or an exported copy of the configuration, taken before the image update. Image updates replace pods, but they do not restore data that was never on a persistent volume, so confirm the volume claims before the rollout starts. The detailed StatefulSet order, persistent volume safety steps and agent validation are covered in the Kubernetes upgrade topic.
- Claim mapping: identify which persistent volume claims back the server configuration and the indexer data, and confirm they are not ephemeral.
- Configuration export: copy the custom rules, decoders and ConfigMap or secret definitions to version control before the rollout.
- Volume snapshot: use your storage class's snapshot capability if it is available, and confirm with your platform team that restores have been tested.
- Rollback path: keep the prior image tags and manifests so the StatefulSets can be reverted in the documented order.
- Verification: after the rollout, run
wazuh-logtestin the server pod and check that dashboard views still load from the indexer.
Ask your platform team to confirm the snapshot class and restore procedure in your cluster before you rely on them.
What makes custom content upgrades take longer
This table lists the factors that expand the work of preserving custom Wazuh content through an upgrade, and what to check for each. Read it to size the review before you agree on scope, since the same upgrade can take very different effort depending on how much custom content and how many systems depend on it. The main takeaway is that volume and integration depth matter more than the upgrade itself.
| Driver | Effect on effort | What to check |
|---|---|---|
| Custom rules and decoders | Each custom file needs review against the new ruleset, and overwrite-based changes need a check that the targeted default rule still exists | Count files in /var/ossec/etc/rules/ and /var/ossec/etc/decoders/, and list every rule that uses overwrite="yes" |
| Dashboards and saved objects | Each custom dashboard, visualization and index pattern must be exported, then re-imported and confirmed after the upgrade | Inventory saved objects in the dashboard and note which ones depend on custom fields |
| CDB lists | Lists referenced by rules must be carried over, and list-based matches need retesting because their content may be stale | Confirm which CDB lists rules reference and who owns updating them |
| Number of environments | Each environment (lab, staging, production) repeats the export, upgrade and logtest cycle, and drift between them adds comparison work | Confirm whether custom content lives in version control and whether all environments match |
| Log sources needing logtest samples | Every decoder and rule family needs representative sample events before and after the upgrade, and sourcing them often takes most of the time | Ask which sources have current, sanitized sample logs stored with the rules |
| Depth of integration with other systems | Rules that feed SOAR tools, ticketing, cloud audit pipelines or custom API calls add test paths beyond logtest | List every downstream consumer of alerts and confirm who validates each one after the upgrade |
How custom content moves through the upgrade
The path starts with inventorying and exporting custom rules, decoders and dashboard objects from the server and the dashboard, then takes a backup and an index snapshot before anything changes. The upgrade runs first in staging, where custom rules are reapplied from /var/ossec/etc/rules/ and the dashboard export is imported and checked. A wazuh-logtest regression run against known sample events then decides whether the staging result moves to production cutover or back to rollback.
Custom content is exported, backed up, reapplied and tested in staging before cutover.
Questions teams ask before upgrading custom Wazuh content
How much effort does upgrading custom Wazuh content take?
The effort depends mainly on how much custom content exists and how well it is organized. A small set of rules and decoders in the documented custom directory, with a few exported dashboards, is a short job to verify. Effort grows with the number of overwrite-based rule changes, decoders that depend on specific default rule IDs, custom dashboards tied to index fields, and the number of log sources each rule must still parse correctly after the upgrade. Ask any provider to inventory these items first, because the inventory sets the size of the test plan. The quote should list which items will be checked, how each is retested with wazuh-logtest, and whether dashboard checks are included.
Can our own team upgrade custom Wazuh rules and dashboards in-house?
Yes, a team with Linux administration skills and someone who understands the Wazuh ruleset can do this in-house. The core steps are documented: keep custom rules in the custom rules directory, export dashboard customizations before upgrading, take an index snapshot, back up the indexer security configuration, JVM settings and Filebeat configuration, then retest with wazuh-logtest. The harder part is judgment: deciding which overwritten default rules still make sense on the new release and whether a decoder still matches real logs. Teams without anyone who has written Wazuh rules often find this slower and more error-prone, so they may prefer a partner for the first cycle and keep the runbook afterward.
What do we need from our staff and environment for this work?
Plan for access and people before the work starts. You need administrative access to the Wazuh server and dashboard, the ability to create a test environment that resembles production, and read access to representative log samples for each source that feeds custom decoders. A named owner from your security operations team should approve rule behavior, since they know which alerts matter. Your change process must allow a maintenance window and a documented rollback path. Confirm with the vendor and your own environment that you can take snapshots of the indexer and store them outside the cluster before any change is made.
How long does a custom-content upgrade take, and what sets the duration?
No duration is fixed here, because the timeline depends on the environment and the scope. The main drivers are the number of custom rules and decoders, the number of log sources to retest, how many dashboards need export and re-import checks, the size of the indexer for snapshots and backups, and whether the upgrade runs in a test environment first. Approval cycles and change windows often take longer than the technical work. Ask for a written schedule that separates preparation, the upgrade itself, retesting and sign-off, and that states which steps depend on your staff's availability.
Are custom Wazuh rules lost in every upgrade?
No. Wazuh warns that edits made directly in the default ruleset directory are lost during upgrades, so those edits must not be relied on. Custom rules placed in the custom rules directory under the Wazuh installation are kept separate from the defaults. Changes to a default rule must be made by copying that rule into the custom directory with overwrite set to yes. Such overrides still need review after each upgrade, because the default rule they replace may have changed in ways that affect your alerts. Confirm the file locations in your own installation before assuming a change is safe.
How do we confirm a dashboard export is complete?
Start from an inventory of every saved object you customized, such as visualizations, saved searches, index patterns and dashboards, then compare that list with what the export file contains. Import the export into a separate test dashboard environment and check that each object opens, its fields resolve, and its filters return the same results as before. Keep a copy of the export file outside the cluster together with the index snapshot. Record the checks in a short sign-off list so the next upgrade can repeat them exactly.
What does a fixed-scope engagement with DeployOpen cover?
DeployOpen works on most engagements under a fixed scope, and the scope, deliverables and timeline are agreed in writing before work starts. For custom Wazuh content, a written scope would normally name the inventory of rules, decoders and dashboards, the test environment, the upgrade steps performed, the wazuh-logtest cases and dashboard checks, the documentation of changes and any retainer for later patch releases. Ask for the exclusions in writing, including anything about agent upgrades, which are a separate topic, and the process for handling newly discovered custom content during the work.
Primary sources for this upgrade
Start with the official Wazuh custom rules documentation before you touch any file. It is the authoritative reference for the rule that matters most in this upgrade: edits made under /var/ossec/ruleset/rules are lost when Wazuh upgrades, so custom rules belong in /var/ossec/etc/rules/, and a change to a default rule is made by copying that rule into the custom directory with overwrite="yes". Read the page alongside your own inventory of changed rules and decoders, and confirm against the version you are running that the paths and attribute behave as described. The Wazuh custom rules documentation is the page to bookmark for the review.
Next, read the Wazuh upgrade guide for central components. It sets out the pre-upgrade steps that protect your customizations: exporting dashboard customizations, creating an index snapshot, and backing up the indexer security configuration, JVM settings and Filebeat configuration. Treat that list as a checklist that someone signs off before the upgrade window opens. Your team, or a partner you engage, owns the evidence that each export and backup was taken and tested, because a backup that cannot be restored does not protect a custom dashboard.
Finally, check the Wazuh release notes for the exact target release and any changes to rules, decoders or dashboards between your current version and the one you plan to run. The components page helps you map each customization to the component it affects, whether the server decoders and rules, the indexer, or the dashboard. Record which release you tested against, since the patch cadence is frequent enough that a plan written for one release may need a recheck before the change window.
How DeployOpen scopes and delivers Wazuh upgrades
DeployOpen treats custom Wazuh rules, decoders and dashboards as part of the upgrade scope, not as an afterthought. Each engagement inventories what you have changed, moves those changes to the locations Wazuh documents for survival, and retests detection before anyone calls the upgrade finished.
How we scope
- We inventory custom rules, decoders, CDB lists and dashboard objects currently running on your Wazuh server and dashboard.
- We identify any edits made directly under the ruleset directory and list the default rules they change.
- We confirm which Wazuh versions are in scope and which upgrade path your environment needs, agreed in writing.
- Engagements are fixed-scope, so the scope, deliverables and timeline are agreed in writing before work starts.
How we build
- We move custom rules and decoders into the custom locations Wazuh documents and rewrite default-rule changes as overwrite-based rules.
- We export dashboard customizations and keep the exported files in version control alongside the rule files.
- We confirm the pre-upgrade backups are in place: an index snapshot, indexer security configuration, JVM settings and Filebeat configuration.
- We run wazuh-logtest against a representative set of log samples before and after the change to compare decoding and rule results.
How we hand over
- You receive a written record of each rule, decoder and dashboard item, where it lives now, and why it was changed.
- You receive the wazuh-logtest sample set and expected results so your team can repeat the checks on future upgrades.
- We walk your engineers through the post-upgrade checklist and the rule and dashboard export procedure.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for Wazuh patch releases in the 4.14 line.
- We can retest custom content after each patch release so rule changes are checked against the current version.
- Support scope, response expectations and review cadence are confirmed in the written agreement, not assumed.

