> 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/s/splunk-appdynamics.md).

# Splunk AppDynamics

Splunk AppDynamics is an application performance monitoring platform. OctoXLabs reads the monitored nodes of every application as devices. It can also read the Controller RBAC users.

## Use cases

* List the machines that run monitored application nodes.

```
Adapters = splunk-appdynamics
```

* Find monitored machines that another inventory source does not know.

```
Adapters = splunk-appdynamics AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination            | Port | Protocol |
| ------------------- | ---------------------- | ---- | -------- |
| OctoXLabs connector | AppDynamics Controller | 443  | HTTPS    |

Port 443 is the default of the Port parameter. The Controller can be reached through an optional HTTP proxy.

### Required permissions

| Scope or role   | Permission | Needed for                         |
| --------------- | ---------- | ---------------------------------- |
| API client role | View       | Applications, nodes and RBAC users |

The source instructions ask for roles with at least View permission for applications, nodes and RBAC users.

## Create credentials in Splunk AppDynamics

{% stepper %}
{% step %}

### Open API Clients

Sign in to the AppDynamics Controller and go to **Settings** > **Administration** > **API Clients**.
{% endstep %}

{% step %}

### Create the client

Click **+ Create**. Enter a name and a description.
{% endstep %}

{% step %}

### Assign roles

Assign roles with at least **View** permission for applications, nodes and RBAC users.
{% endstep %}

{% step %}

### Generate the secret

Click **Generate Secret** and copy the secret. It is shown only once. If you lose it, regenerate it under **Settings** > **Administration** > **API Clients**.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type     | Default | Description                                                              |
| ------------- | -------- | -------- | ------- | ------------------------------------------------------------------------ |
| IP            | Yes      | Text     |         | IP address or host name of the Controller.                               |
| Port          | No       | Integer  | 443     | Controller port.                                                         |
| Client Name   | Yes      | Text     |         | Name of the API client.                                                  |
| Account Name  | Yes      | Text     |         | AppDynamics account name of the Controller.                              |
| Client Secret | Yes      | Password |         | Secret generated for the API client.                                     |
| Is Secure?    | No       | Boolean  | True    | Use HTTPS.                                                               |
| Proxy         | No       | Text     |         | Proxy address.                                                           |
| Thread Count  | No       | Integer  | 32      | Parallel threads for API requests. Minimum 1, maximum 32.                |
| Sleep Time    | No       | Integer  | 0       | Seconds to wait between thread batches. Raise it if you hit rate limits. |
| Timeout       | No       | Integer  | 30      | Seconds to wait for API responses.                                       |
| Fetch Users   | No       | Boolean  | False   | Also collect RBAC users.                                                 |

## Troubleshooting

| Error message                  | Cause                                               | Fix                                                                                                                    |
| ------------------------------ | --------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| Max retries exceeded for {url} | The API kept answering 401 or 429 after 5 attempts. | Check the client credentials and roles. Raise Sleep Time or lower Thread Count if the Controller rate limits requests. |

## Change history

{% hint style="info" %}
Available starting from version 6.5.3.
{% endhint %}
