> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/w/wazuh.md).

# Wazuh

Wazuh is an open source security monitoring platform. OctoXLabs reads the agent list from the Wazuh server API. This adds agent hosts, IP addresses and operating systems to the inventory. Vulnerability data is not collected because the vulnerability endpoint is deprecated.

## Use cases

* List all hosts that run a Wazuh agent.

```
Adapters = wazuh
```

* Find servers that are in your inventory but have no Wazuh agent. Replace `active-directory` with any other source that lists your servers.

```
Adapters = active-directory AND NOT Adapters = wazuh
```

## Before you begin

### Network

| Source              | Destination      | Port                          | Protocol |
| ------------------- | ---------------- | ----------------------------- | -------- |
| OctoXLabs connector | Wazuh server API | 55000 (default, configurable) | HTTPS    |

### Required permissions

| Scope or role  | Permission  | Needed for |
| -------------- | ----------- | ---------- |
| Wazuh API user | Read agents | Agent list |

The exact Wazuh role is Not verified.

## Create credentials in Wazuh

{% stepper %}
{% step %}

### Open the configuration file

On the Wazuh server open `/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml`.
{% endstep %}

{% step %}

### Read the connection values

The file holds the `url`, `port`, `username` and `password` of the API. Example keys: `url: https://192.168.1.10`, `port: 55000`, `username: wazuh-wui`.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter  | Required | Type    | Default | Description                        |
| ---------- | -------- | ------- | ------- | ---------------------------------- |
| IP         | Yes      | Text    |         | IP address of the Wazuh host.      |
| Port       | No       | Integer | 55000   | API port.                          |
| Username   | Yes      | Text    |         | API user.                          |
| Password   | Yes      | Text    |         | API user password.                 |
| Is Secure? | No       | Boolean | True    | Use HTTPS.                         |
| Timeout    | No       | Integer | 30      | Seconds to wait for API responses. |

## Troubleshooting

| Error message | Cause                                 | Fix                                                                    |
| ------------- | ------------------------------------- | ---------------------------------------------------------------------- |
| Not verified  | The adapter has no custom error text. | Check the credentials, the port and that the API user can read agents. |

## Change history
