Wazuh dashboard
The Wazuh dashboard in Wazuh 5.x introduces changes to its configuration, navigation, reporting, health checks, branding, and support for multi-manager environments. These changes prevent Wazuh 4.x dashboard deployments from being upgraded in place. Migrating to Wazuh 5.x dashboard requires deploying a new dashboard instance and recreating the supported configuration from the existing Wazuh 4.x deployment.
After the migration, the Wazuh 5.x dashboard has:
Your supported Wazuh 4.x settings, in their Wazuh 5.x locations.
Your custom dashboards, visualizations, and saved searches, rewritten to Wazuh 5.x index patterns and WCS fields. They show data after the Wazuh agents report to the Wazuh 5.x manager.
Note
You can't recreate previously generated PDF reports in Wazuh 5.x.
Prerequisites
Perform the following steps on the Wazuh 4.x deployment:
Copy
/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml,/etc/wazuh-dashboard/opensearch_dashboards.yml, and the logo files in/usr/share/wazuh-dashboard/plugins/wazuh/public/assets/custom/images/to a location outside the Wazuh 4.x deployment.Note the Advanced settings that you changed. In Dashboards Management > Advanced settings, each changed setting shows Reset to default.
Export the custom saved objects of each tenant, as described in Migrate custom dashboards and visualizations.
Download the Wazuh 4.x reports that you need.
Note
If multitenancy is enabled in the Wazuh 4.x deployment, export and import saved objects separately for each tenant. Saved objects are tenant-specific and aren't shared across tenants. Import objects that you exported from a tenant in the Wazuh 4.x deployment into the corresponding tenant in the Wazuh 5.x deployment to preserve access and ownership. Before you import into a custom tenant, switch to it and create the Wazuh 5.x index patterns that the objects use, such as
wazuh-findings-v5*. To turn multitenancy on in Wazuh 5.x, setkibana.multitenancy_enabled: truein/etc/wazuh-indexer/opensearch-security/config.yml, add the tenants to/etc/wazuh-indexer/opensearch-security/tenants.yml, and apply both files withindexer-security-init.sh. Then setopensearch_security.multitenancy.enabled: truein/etc/wazuh-dashboard/opensearch_dashboards.ymland restart the Wazuh dashboard.
Wazuh dashboard configuration
The Wazuh dashboard configuration defines how the dashboard connects to the Wazuh manager, and it configures dashboard behavior, custom branding, health checks, and user preferences.
Review the existing Wazuh 4.x configuration and recreate the supported settings manually in the Wazuh 5.x deployment. Don't copy the Wazuh 4.x /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml configuration directly, because Wazuh 5.x stores dashboard configuration in different locations.
The following configuration locations are commonly reviewed during the migration.
Location |
Purpose |
|---|---|
|
Wazuh manager API connections, branding, health checks, and dashboard configuration |
Dashboards Management > Advanced settings |
Tenant-specific dashboard settings, including request timeout, enrollment DNS, CSV export limits, and update notifications |
By default, you manage Advanced settings per tenant through the Wazuh dashboard. You can also configure them globally using uiSettings.overrides in opensearch_dashboards.yml.
Configuration changes
Review the following configuration changes before you recreate the Wazuh dashboard configuration.
Configuration and connections
Area |
Wazuh 5.x change |
|---|---|
Configuration file |
|
Wazuh manager API configuration |
|
Default index pattern |
|
Health checks |
Individual |
Removed features
Area |
Wazuh 5.x change |
|---|---|
Statistics collection |
|
Agent monitoring |
|
Branding
Area |
Wazuh 5.x change |
|---|---|
Branding |
Wazuh 5.x doesn't upload logos. Copy the Wazuh 4.x logos from |
Report branding |
You can't use a custom logo, but you can add a header or footer to a report. |
Recreate the Wazuh dashboard configuration
Perform the following steps to recreate the Wazuh dashboard configuration in Wazuh 5.x.
Review the Wazuh 4.x dashboard configuration file
/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.ymland identify any settings that differ from the default values.Compare the Wazuh 4.x
/etc/wazuh-dashboard/opensearch_dashboards.ymlfile with the Wazuh 5.x file. Copy only the lines that you changed, such asopensearch.requestTimeout. Keep the Wazuh 5.x certificate paths andopensearch.ssl.verificationMode.Edit the Wazuh 5.x dashboard configuration file
/etc/wazuh-dashboard/opensearch_dashboards.ymlto recreate the supported Wazuh manager API configuration. Set the URL to the Wazuh 5.x manager address. In a Wazuh manager cluster, use the master node address, because only the master node runs the Wazuh manager API. Use the port andrun_asvalues from the Wazuh 4.x deployment. Keep thewazuh-internal-clientuser, which replaceswazuh-wuiin Wazuh 5.x. Keep thecasetting of the default block, so that the Wazuh dashboard verifies the Wazuh manager API certificate. Leave out thepasswordsetting, because the Wazuh dashboard reads the password from its keystore:wazuh_core.hosts: default: url: https://<WAZUH_MANAGER_IP_OR_HOSTNAME> port: <PORT> username: wazuh-internal-client run_as: true ca: '/etc/wazuh-dashboard/certs/manager-ca.pem'
Note
Wazuh 5.x dashboard uses only the first entry of
wazuh_core.hostsand ignores the others without a warning. Leave out the other Wazuh 4.x entries. To use several Wazuh manager API entries, configure cross-cluster search on the Wazuh indexer, and store the password of each extra entry in the Wazuh dashboard keystore aswazuh_core.hosts.<HOST_ID>.password.Navigate to Dashboards Management > Advanced settings on the Wazuh dashboard to reconfigure advanced settings. Recreate the settings that you changed in Wazuh 4.x. Don't export the Advanced Settings saved object. Wazuh 5.x ignores it. Review the following settings:
Setting
Description
timeoutRequest timeout in milliseconds.
enrollment.dnsWazuh manager DNS name used in the agent deployment guide. Set this value to the Wazuh 5.x manager address.
reports.csv.maxRowsMaximum rows allowed in exported CSV files.
wazuh.updates.disabledDisables the check for updates. The default is
true, so the Wazuh dashboard doesn't check for updates. In Advanced settings, On means that the check is disabled.Restart the Wazuh dashboard service:
# systemctl restart wazuh-dashboard
Verify that the Wazuh manager API connection succeeds. Navigate to Dashboard management > Health Check.
Custom dashboards and visualizations
The Wazuh dashboard stores dashboards, visualizations, saved searches, and index patterns as saved objects in the Wazuh indexer. You can export these objects from a Wazuh 4.x deployment and import them into a Wazuh 5.x deployment.
This migration applies only to custom dashboards, visualizations, saved searches, and index patterns that users create or modify.
Important
Don't export the Wazuh 4.x index patterns wazuh-alerts-*, wazuh-monitoring-*, wazuh-statistics-*, and wazuh-states-*-*, or the Advanced Settings object. Wazuh 5.x provides its own. The default dashboards that Wazuh 5.x provides have the description Provided by Wazuh.
You can recreate the following saved object types in the Wazuh 5.x deployment.
Object type |
Description |
|---|---|
Dashboards |
Collections of visualizations and panels. |
Visualizations |
Charts, tables, maps, metrics, and other visual representations of data. |
Saved searches |
Reusable queries and filters. |
Index patterns |
Definitions used to query and visualize indexed data. |
Migrate custom dashboards and visualizations
Perform the following steps to recreate custom dashboards and visualizations in the Wazuh 5.x deployment.
Export the custom saved objects from the Wazuh 4.x dashboard deployment. Click the ☰ menu and navigate to Dashboards Management > Saved objects. Select the objects to export and click Export.
Note
Disable Include related objects before exporting the saved objects. Otherwise, the export includes the Wazuh 4.x
wazuh-alerts-*index pattern, and the imported panels display no data.Import the exported saved objects into the new deployment. Click the ☰ menu and navigate to Dashboards Management > Saved objects. Click Import and select the exported
.ndjsonfile.Note
When you import objects, select Check for existing objects and then Request action on conflict. When the Wazuh dashboard reports index pattern conflicts, select
wazuh-findings-v5*forwazuh-alerts-*andwazuh-events-v5*forwazuh-archives-*, and click Confirm all changes. This option preserves the default objects that the Wazuh 5.x dashboard provisions. The Automatically overwrite conflicts option replaces existing objects that have the same IDs.If an object still references
wazuh-alerts-*orwazuh-archives-*after the import, change its index pattern towazuh-findings-v5*orwazuh-events-v5*.
Update the field references
Wazuh 5.x uses the Wazuh Common Schema (WCS) to standardize event fields. When recreating visualizations, review the fields referenced by the Wazuh 4.x visualization and identify the appropriate WCS fields for the data you want to display.
To change a field, click the ☰ menu, navigate to Dashboards Management > Saved objects, and click Inspect for the object. Replace the field names in visState, searchSourceJSON, columns, and sort, and click Save. You can also replace the field names in the exported .ndjson file before you import it. Panels that use a Wazuh 4.x field show no data and no error. For example, in searchSourceJSON, replace rule.level >= 7 with wazuh.rule.level:(medium or high or critical). If most fields of a visualization change, rebuild the visualization in Wazuh 5.x instead.
The following table provides examples of Wazuh 4.x fields and related WCS fields in Wazuh 5.x. For the complete list of WCS fields, refer to the Wazuh Common Schema (WCS) documentation. Fields under data.* depend on the decoder. Check the WCS field that the Wazuh 5.x decoder writes.
Wazuh 4.x field |
Wazuh 5.x field |
Notes |
|---|---|---|
|
|
Type changed from integer values 0–16 to values such as low, medium, high, critical, and informational. Rewrite range queries, for example, replace |
|
|
Use this field for the rule title or description shown in migrated visualizations. |
|
|
Use this field to filter or aggregate by rule ID. Wazuh 5.x rule IDs are UUIDs, so filters on Wazuh 4.x numeric rule IDs don't match. |
|
|
Use this field to filter or group by agent name. |
|
|
Use this field to filter or group by Wazuh agent ID. |
|
|
Use this field to filter or group by the integration that generated the event. A Wazuh 4.x rule group, such as |
|
|
Source IP address of the event. |
|
|
Destination IP address of the event. |
|
|
User name of the event. |
|
|
Time of the event. Update the sort order of saved searches. |
|
No Wazuh 5.x field |
Wazuh 5.x doesn't support agent labels and has no replacement field. Remove filters and aggregations on these fields. |
|
|
You can't search or aggregate on this field. |
|
|
Where the Wazuh agent read the event, such as a log file path. |
|
|
Program name from the log header. |
|
|
Host name from the log header. |
Note
Field names, data types, and semantics can differ between Wazuh 4.x and Wazuh 5.x. Review the applicable WCS field before updating filters, aggregations, or saved searches in migrated visualizations.
Verify the migrated objects
Migrated dashboards show only Wazuh 5.x data, so their panels stay empty until the Wazuh agents report to the Wazuh 5.x manager and the Wazuh 5.x detection content exists. Check that the panels show data after you migrate the Wazuh agents. Now, verify the following:
Click the ☰ menu, navigate to Dashboards Management > Saved objects, and verify that the expected objects are present.
Open each migrated dashboard and confirm that all panels load correctly.
Confirm that all filters, aggregations, and searches use valid Wazuh 5.x field names.