> 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/d/dynatrace.md).

# Dynatrace

Dynatrace is an observability platform. OctoXLabs uses its entities API to add the monitored hosts of one environment, with IP addresses, operating system, CPU cores and memory, to the inventory.

## Use cases

* Find hosts monitored by Dynatrace that your EDR does not see.

```
Adapters = dynatrace AND NOT Adapters = falcon-crowdstrike
```

* List Linux hosts monitored by Dynatrace.

```
Adapters = dynatrace AND OS.Type = Linux
```

## Before you begin

### Network

| Source              | Destination                                                                                     | Port               | Protocol                         |
| ------------------- | ----------------------------------------------------------------------------------------------- | ------------------ | -------------------------------- |
| OctoXLabs connector | Dynatrace host: `{environment-id}.live.dynatrace.com` (SaaS) or your domain or IP (on-premises) | 443 (configurable) | HTTPS (HTTP if Is Secure is off) |

### Required permissions

| Scope or role                   | Permission | Needed for    |
| ------------------------------- | ---------- | ------------- |
| API token scope `entities.read` | Read       | Host entities |

Reference: [Dynatrace API authentication](https://docs.dynatrace.com/docs/dynatrace-api/basics/dynatrace-api-authentication). Create a separate connection for each environment.

## Create credentials in Dynatrace

{% stepper %}
{% step %}

### Create an access token

Follow the Dynatrace API authentication guide to create an access token.
{% endstep %}

{% step %}

### Grant the scope

Give the token the `entities.read` scope.
{% endstep %}

{% step %}

### Find the environment id

Copy your environment ID from the Dynatrace web UI.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter      | Required | Type              | Default | Description                                                                     |
| -------------- | -------- | ----------------- | ------- | ------------------------------------------------------------------------------- |
| IP/Hostname    | Yes      | String            | None    | Host name or IP of Dynatrace. SaaS: `{your-environment-id}.live.dynatrace.com`. |
| Port           | No       | Integer           | `443`   | Port.                                                                           |
| API Token      | Yes      | String            | None    | Dynatrace API token.                                                            |
| Environment ID | Yes      | String            | None    | Environment id from the web UI.                                                 |
| Page Size      | No       | Integer (1 to 50) | `50`    | Entities per request.                                                           |
| Is Secure      | No       | Boolean           | `True`  | Use HTTPS.                                                                      |
| Timeout        | No       | Integer (seconds) | `30`    | Time to wait for API responses.                                                 |

## Troubleshooting

| Error message | Cause                                                             | Fix                                                   |
| ------------- | ----------------------------------------------------------------- | ----------------------------------------------------- |
| Not verified  | The connector code defines no custom error text for this adapter. | Check the credentials and network access to the host. |

## Change history
