Skip to content

Wazuh Agent Installation

The agent installation instructions are available on Wazuh documentation

The instructions are only for installing Wazuh agent on Ubuntu. The steps are:

  1. Add the Wazuh repository

Run the following commands:

  • Install the GPG key:
curl -s https://packages.wazuh.com/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.wazuh.com/4.x/apt/ stable main" | tee -a /etc/apt/sources.list.d/wazuh.list
* Update the package information:

apt-get update
  1. Deploy a Wazuh agent

Run the following command and update the WAZUH_MANAGER IP with the correct IP. The command supports multiple deployment options like setting the agent name and registration password. For more information read the official Installation Guide.

WAZUH_MANAGER="<manager-ip>" apt-get install wazuh-agent
  1. Step3: Enable and start the Wazuh agent service Run the following commands:
systemctl daemon-reload

systemctl enable wazuh-agent

systemctl start wazuh-agent