Wazuh server unattended installation

You can install the Wazuh manager and Filebeat using an automated script. This script performs a health check to verify that the system has enough resources to achieve optimal performance.

For more information on system resources, see the Requirements section.

Installing the Wazuh server

Note

Root user privileges are required to run all the commands. To download the script, the package curl is used.

Download the installation script:

# curl -so ~/wazuh-server-installation.sh https://packages.wazuh.com/resources/4.2/open-distro/unattended-installation/distributed/wazuh-server-installation.sh

Run the following command to install the Wazuh manager. Replace <node_name> with the name of the Wazuh server. The name of the node must be the same used in config.yml for the certificate creation, e.g. filebeat.

In case of installing a multi-node Wazuh cluster, repeat the process on every host:

# bash ~/wazuh-server-installation.sh -n <node_name>

The installation script allows the following options to be applied:

Options

Purpose

-n / --node-name

It indicates the name of the Wazuh server instance.

-i / --ignore-healthcheck

It ignores the health check.

-d / --debug

It shows the complete installation output.

-h / --help

It shows help.

Configure the installation

After the installation of all the components of the node, you need to perform some steps to finish configuring the installation.

Choose the cluster mode between single-node or multi-node:

Once the script finishes the installation, all the components are ready to use.

To uninstall Wazuh and Filebeat, see the Uninstalling section.