Installing the Wazuh dashboard step by step
Install and configure the Wazuh dashboard following step-by-step instructions. The Wazuh dashboard is a web interface for mining and visualizing the Wazuh manager alerts and archived events.
Note
You need root user privileges to run all the commands described below.
Wazuh dashboard installation
Follow these steps to install the Wazuh dashboard.
Installing package dependencies
Install the following packages if missing.
# apt-get install -y debhelper tar curl libcap2-bin #debhelper version 9 or later
# yum -y install libcap
# dnf -y install libcap
Adding the Wazuh repository
Note
If you are installing the Wazuh dashboard on the same host as the Wazuh indexer or the Wazuh manager, you may skip these steps as you may have added the Wazuh repository already.
Install the following packages if missing:
# apt-get install -y gnupg apt-transport-https
Install the GPG key:
# curl -s https://packages-staging.xdrsiem.wazuh.info/key/GPG-KEY-WAZUH | gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && chmod 644 /usr/share/keyrings/wazuh.gpg
Add the repository:
# echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages-staging.xdrsiem.wazuh.info/pre-release/5.x/apt/ unstable main" | tee -a /etc/apt/sources.list.d/wazuh.list
Update the packages information:
# apt-get update
Import the GPG key.
# rpm --import https://packages-staging.xdrsiem.wazuh.info/key/GPG-KEY-WAZUH
Add the repository.
For RHEL-compatible systems version 8 and earlier, use the following command:
# echo -e '[wazuh]\ngpgcheck=1\ngpgkey=https://packages-staging.xdrsiem.wazuh.info/key/GPG-KEY-WAZUH\nenabled=1\nname=EL-$releasever - Wazuh\nbaseurl=https://packages-staging.xdrsiem.wazuh.info/pre-release/5.x/yum/\nprotect=1' | tee /etc/yum.repos.d/wazuh.repo
For RHEL-compatible systems version 9 and later, use the following command:
# echo -e '[wazuh]\ngpgcheck=1\ngpgkey=https://packages-staging.xdrsiem.wazuh.info/key/GPG-KEY-WAZUH\nenabled=1\nname=EL-$releasever - Wazuh\nbaseurl=https://packages-staging.xdrsiem.wazuh.info/pre-release/5.x/yum/\npriority=1' | tee /etc/yum.repos.d/wazuh.repo
Import the GPG key.
# rpm --import https://packages-staging.xdrsiem.wazuh.info/key/GPG-KEY-WAZUH
Add the repository.
# echo -e '[wazuh]\ngpgcheck=1\ngpgkey=https://packages-staging.xdrsiem.wazuh.info/key/GPG-KEY-WAZUH\nenabled=1\nname=EL-$releasever - Wazuh\nbaseurl=https://packages-staging.xdrsiem.wazuh.info/pre-release/5.x/yum/\npriority=1' | tee /etc/yum.repos.d/wazuh.repo
Installing the Wazuh dashboard
Install the Wazuh dashboard package.
# apt-get -y install wazuh-dashboard
# yum -y install wazuh-dashboard
# dnf -y install wazuh-dashboard
Configuring the Wazuh dashboard
Edit the
/etc/wazuh-dashboard/opensearch_dashboards.ymlfile and replace the following values:
server.host: This setting specifies the host of the Wazuh dashboard server. To allow remote users to connect, set the value to the IP address or DNS name of the Wazuh dashboard server. The value0.0.0.0will accept all the available IP addresses of the host.
opensearch.hosts: The URLs of the Wazuh indexer instances to use for all your queries. The Wazuh dashboard can be configured to connect to multiple Wazuh indexer nodes in the same cluster. The addresses of the nodes can be separated by commas. For example,["https://10.0.0.2:9200", "https://10.0.0.3:9200","https://10.0.0.4:9200"]server.host: 0.0.0.0 server.port: 443 opensearch.hosts: https://localhost:9200 opensearch.ssl.verificationMode: certificate
wazuh_core.hosts.url: This setting specifies the Wazuh manager master node. Replace<WAZUH_MANAGER_IP_ADDRESS>with the IP address or hostname of the Wazuh manager master node.wazuh_core.hosts: default: url: https://<WAZUH_MANAGER_IP_ADDRESS> port: 55000 username: wazuh-wui password: wazuh-wui run_as: true
Deploying certificates
Note
Make sure that a copy of
wazuh-certificates.tarfile, created during the initial configuration step, is placed in your working directory.
Replace
<DASHBOARD_NODE_NAME>with your Wazuh dashboard node name, the same one used in theconfig.ymlfile to create the certificates. In our case, the node name is,dashboard. Then move the certificates to their corresponding location:# NODE_NAME=<DASHBOARD_NODE_NAME># mkdir /etc/wazuh-dashboard/certs # tar -xf ./wazuh-certificates.tar -C /etc/wazuh-dashboard/certs/ ./$NODE_NAME.pem ./$NODE_NAME-key.pem ./root-ca.pem # [ ! -e /etc/wazuh-dashboard/certs/dashboard.pem ] && mv -n /etc/wazuh-dashboard/certs/$NODE_NAME.pem /etc/wazuh-dashboard/certs/dashboard.pem # [ ! -e /etc/wazuh-dashboard/certs/dashboard-key.pem ] && mv -n /etc/wazuh-dashboard/certs/$NODE_NAME-key.pem /etc/wazuh-dashboard/certs/dashboard-key.pem # chmod 500 /etc/wazuh-dashboard/certs # chmod 400 /etc/wazuh-dashboard/certs/* # chown -R wazuh-dashboard:wazuh-dashboard /etc/wazuh-dashboard/certs
Starting the Wazuh dashboard service
Enable and start the Wazuh dashboard service.
# systemctl daemon-reload # systemctl enable wazuh-dashboard # systemctl start wazuh-dashboard
Choose one option according to your operating system:
RPM-based operating system:
# chkconfig --add wazuh-dashboard # service wazuh-dashboard start
Debian-based operating system:
# update-rc.d wazuh-dashboard defaults 95 10 # service wazuh-dashboard start
Access the Wazuh web interface with your
adminuser credentials. This is the default administrator account for the Wazuh indexer and it allows you to access the Wazuh dashboard.URL:
https://<WAZUH_DASHBOARD_IP_ADDRESS>Username:
adminPassword:
admin
When you access the Wazuh dashboard for the first time, the browser shows a warning message stating that the certificate was not issued by a trusted authority. An exception can be added in the advanced options of the web browser. For increased security, the
root-ca.pemfile previously generated can be imported to the certificate manager of the browser.
Disable Wazuh updates
We recommend disabling the Wazuh package repositories after installing all components on this server to prevent accidental upgrades.
Execute the following command only after completing all installations:
# sed -i "s/^deb /#deb /" /etc/apt/sources.list.d/wazuh.list
# apt update
# sed -i "s/^enabled=1/enabled=0/" /etc/yum.repos.d/wazuh.repo
# sed -i "s/^enabled=1/enabled=0/" /etc/yum.repos.d/wazuh.repo
Securing your Wazuh installation
You have now installed and configured all the Wazuh central components. We recommend changing the default credentials to protect your infrastructure from possible attacks.
Select your deployment type and follow the instructions to change the default passwords for both the Wazuh API and the Wazuh indexer users.
Wazuh indexer users are defined in /etc/wazuh-indexer/opensearch-security/internal_users.yml.
Download the Wazuh passwords tool:
# wget https://packages-staging.xdrsiem.wazuh.info/pre-release/5.x/installation-assistant/wazuh-passwords-tool-5.0.0-beta2.sh
To change the password for a Wazuh indexer user, run the passwords tool with the
-uoption and indicate the new password with the-poption. The password must have a length between 8 and 64 characters and contain at least one upper case letter, one lower case letter, a number, and one of the following symbols:.*+?-.# bash wazuh-passwords-tool-5.0.0-beta2.sh -u <USER> -p <PASSWORD>
Where
<USER>is the name of the user whose password you want to change and<PASSWORD>is the new password. If<PASSWORD>is not specified, the tool will generate a random password.For example, to change the password of the
adminuser toSecr3tP4ssw*rd, run the following command:# bash wazuh-passwords-tool-5.0.0-beta2.sh -u admin -p Secr3tP4ssw*rd
10/04/2026 13:40:45 INFO: Updating the internal users. 10/04/2026 13:41:04 INFO: A backup of the internal users has been saved in the /etc/wazuh-indexer/internalusers-backup folder. 10/04/2026 13:41:05 INFO: Generating password hash 10/04/2026 13:42:28 WARNING: Password changed. Remember to update the password in the Wazuh dashboard and the Wazuh manager nodes if necessary, and restart the services.
To change the password for a Wazuh manager API user, use the following syntax:
# bash wazuh-passwords-tool-5.0.0-beta2.sh -A -au <ADMIN_USER> -ap <ADMIN_PASSWORD> -u <USER> -p <PASSWORD>
Where <ADMIN_USER> and <ADMIN_PASSWORD> are the Wazuh manager API administrator user and password, respectively. <USER> is the name of the user whose password you want to change, and <PASSWORD> is the new password. If <PASSWORD> is not specified, the tool will generate a random password.
For example, to change the password of the wazuh user to Hello*123, run the following command:
# bash wazuh-passwords-tool-5.0.0-beta2.sh -A -au wazuh -ap wazuh -u wazuh -p Hello*123
10/04/2026 13:52:43 INFO: The password for Wazuh API user wazuh is Hello*123
Download the Wazuh passwords tool on any Wazuh indexer node:
# wget https://packages-staging.xdrsiem.wazuh.info/pre-release/5.x/installation-assistant/wazuh-passwords-tool-5.0.0-beta2.sh
Use the Wazuh passwords tool to change the passwords of a specific Wazuh indexer user:
# bash wazuh-passwords-tool-5.0.0-beta2.sh -u <USER> -p <PASSWORD>
Where
<USER>is the name of the user whose password you want to change and<PASSWORD>is the new password. If<PASSWORD>is not specified, the tool will generate a random password.For example, to change the password of the
adminuser toSecr3tP4ssw*rd, run the following command:# bash wazuh-passwords-tool-5.0.0-beta2.sh -u admin -p Secr3tP4ssw*rd
10/04/2026 13:40:45 INFO: Updating the internal users. 10/04/2026 13:41:04 INFO: A backup of the internal users has been saved in the /etc/wazuh-indexer/internalusers-backup folder. 10/04/2026 13:41:05 INFO: Generating password hash 10/04/2026 13:42:28 WARNING: Password changed. Remember to update the password in the Wazuh dashboard and the Wazuh manager nodes if necessary, and restart the services.
On your Wazuh manager master node, download the Wazuh passwords tool and use it to change the password of the
wazuh-wuiWazuh API user:# wget https://packages-staging.xdrsiem.wazuh.info/pre-release/5.x/installation-assistant/wazuh-passwords-tool-5.0.0-beta2.sh # bash wazuh-passwords-tool-5.0.0-beta2.sh -A -au wazuh -ap Hello*123 -u wazuh-wui -p P3ssword+098
10/04/2026 13:56:47 INFO: The password for Wazuh API user wazuh-wui is P3ssword+098
Replace
<WAZUH_WUI_PASSWORD>in the/etc/wazuh-dashboard/opensearch_dashboards.ymlfile with the newwazuh-wuipassword generated in the previous step:wazuh_core.hosts: default: url: https://127.0.0.1 port: 55000 username: wazuh-wui password: "<WAZUH_WUI_PASSWORD>" run_as: true
Restart the Wazuh dashboard to apply the changes.
# systemctl restart wazuh-dashboard
# service wazuh-dashboard restart
Next steps
All the Wazuh central components are successfully installed and secured.
The Wazuh environment is now ready, and you can proceed with installing the Wazuh agent on the endpoints to be monitored. To perform this action, see the Wazuh agent section.
If you want to uninstall the Wazuh dashboard, see Uninstalling the Wazuh dashboard.