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

  1. Install the following packages if missing.

    # apt-get install -y debhelper tar curl libcap2-bin #debhelper version 9 or later
    

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.

  1. Install the following packages if missing:

    # apt-get install -y gnupg apt-transport-https
    
  2. 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
    
  3. 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
    
  4. Update the packages information:

    # apt-get update
    

Installing the Wazuh dashboard

  1. Install the Wazuh dashboard package.

    # apt-get -y install wazuh-dashboard
    

Configuring the Wazuh dashboard

  1. Edit the /etc/wazuh-dashboard/opensearch_dashboards.yml file and replace the following values:

    1. 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 value 0.0.0.0 will accept all the available IP addresses of the host.

    2. 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
      
    3. 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.tar file, created during the initial configuration step, is placed in your working directory.

  1. Replace <DASHBOARD_NODE_NAME> with your Wazuh dashboard node name, the same one used in the config.yml file 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

  1. Enable and start the Wazuh dashboard service.

    # systemctl daemon-reload
    # systemctl enable wazuh-dashboard
    # systemctl start wazuh-dashboard
    
  2. Access the Wazuh web interface with your admin user 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: admin

    • Password: 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.pem file 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

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.

  1. 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
    
  2. To change the password for a Wazuh indexer user, run the passwords tool with the -u option and indicate the new password with the -p option. 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 admin user to Secr3tP4ssw*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.
    

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.