Enrollment methods
Wazuh supports two methods for enrolling Wazuh agents. Both methods configure the Wazuh agent to request or receive a client key and use it to connect to the Wazuh manager.
Enrollment through agent configuration: Configure the IP address or fully qualified domain name (FQDN) of the Wazuh manager on the Wazuh agent. The Wazuh agent requests the client key from the Wazuh manager and imports it automatically. This is the recommended enrollment method.
Enrollment through the Wazuh manager API: Request the client key from the Wazuh manager API and import it manually on the Wazuh agent.