Skip to content

Configure Endpoint Agents

Enrol Windows and Ubuntu endpoints, verify connectivity, and add useful Windows telemetry with Sysmon.

Machines: Wazuh server + endpoint VMsUsers: endpoint administratorsStarting point: manager healthy and endpoints can reach it
1 Prepare2 Enrol3 Start4 Verify5 Add telemetry

Before you begin

Record <WAZUH_SERVER_IP>, the intended agent names, and the required communication ports. Confirm endpoint time, DNS, routing, and host firewall policy before installing an agent.

Detailed endpoint procedure

The complete Windows, troubleshooting, Sysmon, and Ubuntu agent procedures are retained below.

Configure the firewall on Windows

For Wazuh agent to communicate with the Wazuh manager services, the following ports needs to be allowed for outbound connection:

  • 1514/TCP for agent communication.
  • 1515/TCP for enrollment via automatic agent request.
  • 55000/TCP for enrollment via manager API.

Open Windows Defender Firewall with Advanced Security. Right-click Outbound Rules and create new rule. Select Port.

Windows Defender Firewall advanced settings

Select TCP and Specific remote ports. Put 1514, 1515, 55000. Click Next.

Creating a Windows inbound firewall rule

Select Allow the connection.

Selecting TCP ports for the Wazuh Windows firewall rule

Select only the network profiles used by the managed endpoint. Avoid enabling a broad Public-profile rule unless the endpoint design explicitly requires it.

Allowing the Wazuh connection in Windows Firewall

Name the New Outbound Rule as Wazuh outbound and click Finish.

Completed Windows Firewall rule for Wazuh agent communication

Install the Wazuh agent on Windows

The agent runs on the endpoint you want to monitor and communicates with the Wazuh server, sending data in near real-time through an encrypted and authenticated channel.

Administrator access required

Run the installation from an elevated PowerShell session.

Download the Windows agent version recorded in the tested-version table. Keep the manager at the same or a newer version than its agents and verify the MSI checksum against the Wazuh packages list before installation.

Open PowerShell as Administrator and change directory to where Windows installer is located. Run the following command:

msiexec.exe /i .\wazuh-agent-<TESTED_VERSION>.msi /qn WAZUH_MANAGER="<WAZUH_SERVER_IP>"

The installation process is now complete, and the Wazuh agent is successfully installed and configured. You can start the Wazuh agent from the GUI or by running:

NET START WazuhSvc

Once started, the Wazuh agent will start the enrollment process and register with the manager.

Troubleshoot the Windows Wazuh agent

If Wazuh agent on Windows is unable to connect to Wazuh server, open Wazuh Agent Manager

If Authentication key show as , click Manage then Restart

Click Save then Refresh

Wazuh dashboard agent deployment instructions

You should be able to see Authentication key. The Authentication key is used to encrypt the traffic from the agent to the Wazuh server.

If issues still persist, refer to the log file located at C:\Program Files (x86)\ossec-agent\ossec.log

Alternatively, refer to the Troubleshooting guide.

Windows Wazuh agent enrollment details

On Wazuh web UI, go to Server management, then Endpoints Summary.

Verify that the Windows agent is active.

Active Windows endpoint in the Wazuh dashboard

Integrate Sysmon

Perform the steps below to install and configure Sysmon on the Windows endpoint.

Download Sysmon from the Microsoft Sysinternals page.

Download the Sysmon configuration file: sysmonconfig.xml. Note this is a modified version of sysmonconfig.xml recommended for integration with Wazuh.

Install Sysmon with the downloaded configuration file using PowerShell as an administrator:

.\sysmon64.exe -accepteula -i .\sysmonconfig.xml

Open notepad as Administrator and open ossec.conf.

Add the following configuration within the <ossec_config> block to the Wazuh agent C:\Program Files (x86)\ossec-agent\ossec.conf file to specify the location to collect Sysmon logs:

<localfile>
  <location>Microsoft-Windows-Sysmon/Operational</location>
  <log_format>eventchannel</log_format>
</localfile>

Restart the Wazuh agent to apply the changes by running the following PowerShell command as an administrator:

Restart-Service -Name Wazuh

Checkpoint: confirm endpoint visibility

In the dashboard, confirm each expected agent is Active. Search for a current event from each endpoint and verify that the event identifies the correct agent.name, agent.id, and source host.

If an agent is missing, check service status, manager address, enrollment logs, network ports, certificates or credentials, and clock skew—in that order.

Completion criteriaEach endpoint is active, current events are searchable, and Windows Sysmon data is available when that optional path was selected.

↑ Back to Wazuh journey map