Preparing the Upgrade
Export Dashboard Customizations
It is recommended to export customizations from the Wazuh dashboard. This step helps to preserve visualizations, dashboards, and other saved objects in case there are any issues during the upgrade process.- Navigate to Dashboard management > Dashboards Management > Saved objects on the Wazuh dashboard.
- Select which objects to export and click Export, or click Export all objects to export everything.
Stop the Wazuh Dashboard Service
Systemd:Upgrading the Wazuh Dashboard
Backup Configuration
Backup the/etc/wazuh-dashboard/opensearch_dashboards.yml file to save your settings. For example, create a copy of the file using the following command:
Upgrade the Package
Yum (RHEL/CentOS):When prompted, choose to replace the
/etc/wazuh-dashboard/opensearch_dashboards.yml file with the updated version.Reapply Configuration Changes
Manually reapply any configuration changes to the/etc/wazuh-dashboard/opensearch_dashboards.yml file. Ensure that the values of server.ssl.key and server.ssl.certificate match the files located in /etc/wazuh-dashboard/certs/.
Set Default Route
Ensure the value ofuiSettings.overrides.defaultRoute in the /etc/wazuh-dashboard/opensearch_dashboards.yml file is set to /app/wz-home as shown below:
Restart the Dashboard
Systemd:- RPM-based operating system:
- Debian-based operating system:
Verify the Upgrade
You can now access the Wazuh dashboard via:https://<DASHBOARD_IP_ADDRESS>/app/wz-home.
Import Saved Customizations
Import the saved customizations exported while preparing the upgrade:- Navigate to Dashboard management > Dashboard Management > Saved objects on the Wazuh dashboard.
- Click Import, add the ndjson file and click Import.
Check Dashboard Functionality
Verify that all dashboard features are working correctly:- Access the main dashboard page
- Navigate through different modules
- Check agent status and monitoring
- Test search and filtering functionality
- Verify custom dashboards and visualizations load correctly
Migrating from 4.x to 5.x
The migration from 4.x to 5.x includes significant breaking changes that require special attention:- Configuration file structure changes
- Index pattern updates
- Plugin architecture modifications
- Deprecated feature removal
Managing Plugins
The upgrade process does not update plugins installed manually. Outdated plugins might cause the upgrade to fail.
List Installed Plugins
Run the following command on the Wazuh dashboard server to list installed plugins and identify those that require an update:Update Outdated Plugins
Remove the outdated plugins and reinstall the latest version replacing<PLUGIN_NAME> with the name of the plugin:
Upgrade Best Practices
Pre-Upgrade Checklist
- Review release notes for breaking changes
- Export all saved objects and customizations
- Backup configuration files
- Backup certificates
- Document current settings
- Test upgrade in a non-production environment first
- Schedule upgrade during maintenance window
- Notify users of planned downtime
Post-Upgrade Checklist
- Verify dashboard service is running
- Check logs for errors
- Test API connectivity
- Verify index patterns
- Import saved objects
- Test core functionality
- Verify agent connections
- Check custom integrations
- Validate user access and permissions
- Monitor performance metrics
Version-Specific Notes
Wazuh 5.0.0
Key Changes:- Support for OpenSearch Dashboards 3.5.0
- Default index pattern changed to
wazuh-events* - Migration of settings from
wazuh.ymltoopensearch_dashboards.yml - Reworked health check functionality
- New modular plugin architecture
- Removed
wazuh-alerts*index pattern - Removed legacy App Settings application
- Removed deprecated monitoring and statistics jobs
- Removed Rules, Decoders, CDB List, and Ruleset test apps
- Removed legacy reporting application
Wazuh 4.14.x
Key Changes:- Support for OpenSearch Dashboards 2.19.x
- Added ability to remove agents from management interface
- Added persistence for page size and sorting in tables
- Improved Agent Overview resilience
Wazuh 4.13.x
Key Changes:- Added IT Hygiene application
- Added hardware and system information to agent overview
- Added persistence for selected columns in data grids
- Added ability to manage sample data
Troubleshooting Upgrade Issues
Dashboard Fails to Start After Upgrade
Symptoms: Service fails to start or crashes immediately after upgrade. Solutions:- Check service status:
- Review logs:
- Verify configuration syntax:
- Check file permissions:
Configuration Not Applied
Symptoms: Settings from configuration file are not taking effect. Solutions:- Verify configuration file location and syntax
- Ensure no duplicate settings
- Check for typos in setting keys
- Restart the service after configuration changes
- Clear browser cache and cookies
Plugin Compatibility Issues
Symptoms: Dashboard displays plugin errors or fails to load certain features. Solutions:- List all installed plugins:
- Remove incompatible plugins:
- Clear optimization cache:
Saved Objects Import Fails
Symptoms: Error when importing exported saved objects. Solutions:- Verify the
.ndjsonfile is not corrupted - Check for version compatibility issues
- Import objects in smaller batches
- Use “Automatically overwrite conflicts” option
- Manually create conflicting objects first
Performance Degradation After Upgrade
Symptoms: Dashboard is slower than before the upgrade. Solutions:- Clear browser cache
- Optimize indices:
- Review resource utilization:
- Check indexer performance
- Review dashboard configuration for optimization opportunities
Rollback Procedure
If you need to rollback to the previous version:- Stop the dashboard service:
- Downgrade the package:
- Restore configuration backup:
- Restart the service:
- Verify functionality and import saved objects if needed
Additional Resources
- Official upgrade documentation: https://documentation.wazuh.com/current/upgrade-guide/index.html
- Release notes: Check the CHANGELOG for version-specific changes
- Community support: https://groups.google.com/g/wazuh
- GitHub issues: https://github.com/wazuh/wazuh-dashboard-plugins/issues